Account/inbox 1/3 touch delegate

pull/207/head
M66B 4 years ago
parent 6572ad77bc
commit 05edc4257a

@ -160,12 +160,15 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
view.post(new Runnable() { view.post(new Runnable() {
@Override @Override
public void run() { public void run() {
int left = ibInbox.getLeft(); int left;
int right = ibInbox.getRight(); int right;
if (view.getLayoutDirection() == View.LAYOUT_DIRECTION_LTR) if (view.getLayoutDirection() == View.LAYOUT_DIRECTION_LTR) {
left = Math.min(left, right - view.getHeight()); left = view.getWidth() - view.getWidth() / 3;
else right = view.getWidth();
right = Math.max(right, left + view.getHeight()); } else {
left = 0;
right = view.getWidth() / 3;
}
Rect rect = new Rect( Rect rect = new Rect(
left, left,
view.getTop(), view.getTop(),

Loading…
Cancel
Save