Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9547fd4a authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Fixed a bug in the notification touch selection." into lmp-dev

parents e0320054 abdc5a07
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -754,15 +754,20 @@ public abstract class BaseStatusBar extends SystemUI implements
            public boolean onLongPress(View v, int x, int y) {
                dismissPopups();

                if (v.getWindowToken() == null) return false;
                if (v.getWindowToken() == null) {
                    Log.e(TAG, "Trying to show notification guts, but not attached to window");
                    return false;
                }

                // Assume we are a status_bar_notification_row
                final NotificationGuts guts = (NotificationGuts) v.findViewById(
                        R.id.notification_guts);
                if (guts == null) return false;

                // Already showing?
                if (guts.getVisibility() == View.VISIBLE) return false;
                if (guts.getVisibility() == View.VISIBLE) {
                    Log.e(TAG, "Trying to show notification guts, but already visible");
                    return false;
                }

                guts.setVisibility(View.VISIBLE);
                final double horz = Math.max(guts.getWidth() - x, x);
+2 −2
Original line number Diff line number Diff line
@@ -580,7 +580,7 @@ public class NotificationStackScrollLayout extends ViewGroup
            }
            float childTop = slidingChild.getTranslationY();
            float top = childTop + slidingChild.getClipTopAmount();
            float bottom = top + slidingChild.getActualHeight();
            float bottom = childTop + slidingChild.getActualHeight();

            // Allow the full width of this view to prevent gesture conflict on Keyguard (phone and
            // camera affordance).
@@ -1530,7 +1530,7 @@ public class NotificationStackScrollLayout extends ViewGroup
                return position;
            }
            if (child.getVisibility() != View.GONE) {
                position += child.getHeight();
                position += getIntrinsicHeight(child);
                if (i < getChildCount()-1) {
                    position += mPaddingBetweenElements;
                }