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

Commit 427cec4f authored by Winson Chung's avatar Winson Chung
Browse files

Fix issue with configuration update check.

- We can hold a reference to the same configuration since it is updated
  and re-dispatched. Instead, make a copy of the configuration to store
  the last configuration state.

Fixes: 63755686
Test: Open Recents, rotate, ensure that the display bounds and task bounds
      are calculated correctly.

Change-Id: Ie0d2b5a0fa479428614d9593a2379420ccbd2fb4
parent 717dd58c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ import java.io.PrintWriter;
 */
public class PipTouchState {
    private static final String TAG = "PipTouchHandler";
    private static final boolean DEBUG = true;
    private static final boolean DEBUG = false;

    private ViewConfiguration mViewConfig;

+1 −1
Original line number Diff line number Diff line
@@ -337,7 +337,7 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD
        getWindow().getAttributes().privateFlags |=
                WindowManager.LayoutParams.PRIVATE_FLAG_FORCE_DECOR_VIEW_VISIBILITY;

        mLastConfig = Utilities.getAppConfiguration(this);
        mLastConfig = new Configuration(Utilities.getAppConfiguration(this));
        mFocusTimerDuration = getResources().getInteger(R.integer.recents_auto_advance_duration);
        mIterateTrigger = new DozeTrigger(mFocusTimerDuration, new Runnable() {
            @Override