Merge "Only add divider when it need to show" into rvc-dev am: 8acb04e235
Change-Id: I8f1ea1a38aecfee8856f5f872a16e0478ed411b1
This commit is contained in:
@@ -41,7 +41,6 @@ public class WindowlessWindowManager implements IWindowSession {
|
|||||||
private final static String TAG = "WindowlessWindowManager";
|
private final static String TAG = "WindowlessWindowManager";
|
||||||
|
|
||||||
private class State {
|
private class State {
|
||||||
//TODO : b/150190730 we should create it when view show and release it when view invisible.
|
|
||||||
SurfaceControl mSurfaceControl;
|
SurfaceControl mSurfaceControl;
|
||||||
WindowManager.LayoutParams mParams = new WindowManager.LayoutParams();
|
WindowManager.LayoutParams mParams = new WindowManager.LayoutParams();
|
||||||
int mDisplayId;
|
int mDisplayId;
|
||||||
|
|||||||
@@ -238,7 +238,10 @@ public class Divider extends SystemUI implements DividerView.DividerCallbacks,
|
|||||||
mSplitLayout.mSecondary = new Rect(mRotateSplitLayout.mSecondary);
|
mSplitLayout.mSecondary = new Rect(mRotateSplitLayout.mSecondary);
|
||||||
mRotateSplitLayout = null;
|
mRotateSplitLayout = null;
|
||||||
}
|
}
|
||||||
update(newConfig);
|
|
||||||
|
if (isSplitActive()) {
|
||||||
|
update(newConfig);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Handler getHandler() {
|
Handler getHandler() {
|
||||||
@@ -313,11 +316,6 @@ public class Divider extends SystemUI implements DividerView.DividerCallbacks,
|
|||||||
mHandler.post(this::removeDivider);
|
mHandler.post(this::removeDivider);
|
||||||
}
|
}
|
||||||
|
|
||||||
void onTasksReady() {
|
|
||||||
mHandler.post(() -> update(mDisplayController.getDisplayContext(
|
|
||||||
mContext.getDisplayId()).getResources().getConfiguration()));
|
|
||||||
}
|
|
||||||
|
|
||||||
private void updateVisibility(final boolean visible) {
|
private void updateVisibility(final boolean visible) {
|
||||||
if (DEBUG) Slog.d(TAG, "Updating visibility " + mVisible + "->" + visible);
|
if (DEBUG) Slog.d(TAG, "Updating visibility " + mVisible + "->" + visible);
|
||||||
if (mVisible != visible) {
|
if (mVisible != visible) {
|
||||||
|
|||||||
@@ -113,8 +113,6 @@ class SplitScreenTaskOrganizer extends TaskOrganizer {
|
|||||||
t.setColor(mSecondaryDim, new float[]{0f, 0f, 0f});
|
t.setColor(mSecondaryDim, new float[]{0f, 0f, 0f});
|
||||||
t.apply();
|
t.apply();
|
||||||
releaseTransaction(t);
|
releaseTransaction(t);
|
||||||
|
|
||||||
mDivider.onTasksReady();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user