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

Commit 3e96e06f authored by Bryce Lee's avatar Bryce Lee Committed by Android (Google) Code Review
Browse files

Merge "Make sure that changes to UI in SwipeDismissLayout are on UI thread." into cw-e-dev

parents 9751afcf 8a148a3b
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -89,8 +89,9 @@ public class SwipeDismissLayout extends FrameLayout {
                }
            };
    private BroadcastReceiver mScreenOffReceiver = new BroadcastReceiver() {
        private Runnable mRunnable = new Runnable() {
            @Override
        public void onReceive(Context context, Intent intent) {
            public void run() {
                if (mDismissed) {
                    dismiss();
                } else {
@@ -99,6 +100,12 @@ public class SwipeDismissLayout extends FrameLayout {
                resetMembers();
            }
        };

        @Override
        public void onReceive(Context context, Intent intent) {
            post(mRunnable);
        }
    };
    private IntentFilter mScreenOffFilter = new IntentFilter(Intent.ACTION_SCREEN_OFF);

    private float mLastX;