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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user