Merge "Force update sysui flags after binding to overview service" into rvc-dev am: 677051e3f1 am: bcd3ac8ce2 am: 27df53cd01

Change-Id: I4fb499213f76ed2bcc601f6278173bbb16f4519e
This commit is contained in:
TreeHugger Robot
2020-04-24 23:32:57 +00:00
committed by Automerger Merge Worker
2 changed files with 7 additions and 1 deletions

View File

@@ -60,6 +60,11 @@ public class SysUiState implements Dumpable {
mCallbacks.remove(callback);
}
/** Returns the current sysui state flags. */
public int getFlags() {
return mFlags;
}
/** Methods to this call can be chained together before calling {@link #commitUpdate(int)}. */
public SysUiState setFlag(int flag, boolean enabled) {
if (enabled) {

View File

@@ -495,8 +495,9 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
}
dispatchNavButtonBounds();
// Update the systemui state flags
// Force-update the systemui state flags
updateSystemUiStateFlags();
notifySystemUiStateFlags(mSysUiState.getFlags());
notifyConnectionChanged();
}