Remove experimental immersive mode support. DO NOT MERGE
Bug: 2949215 Change-Id: I7d998ef571ef7e149bb96261430e92150b80b77d
This commit is contained in:
@@ -5687,35 +5687,6 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
|
||||
}
|
||||
}
|
||||
|
||||
public void setImmersive(IBinder token, boolean immersive) {
|
||||
synchronized(this) {
|
||||
int index = (token != null) ? mMainStack.indexOfTokenLocked(token) : -1;
|
||||
if (index < 0) {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
ActivityRecord r = (ActivityRecord)mMainStack.mHistory.get(index);
|
||||
r.immersive = immersive;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isImmersive(IBinder token) {
|
||||
synchronized (this) {
|
||||
int index = (token != null) ? mMainStack.indexOfTokenLocked(token) : -1;
|
||||
if (index < 0) {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
ActivityRecord r = (ActivityRecord)mMainStack.mHistory.get(index);
|
||||
return r.immersive;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isTopActivityImmersive() {
|
||||
synchronized (this) {
|
||||
ActivityRecord r = mMainStack.topRunningActivityLocked(null);
|
||||
return (r != null) ? r.immersive : false;
|
||||
}
|
||||
}
|
||||
|
||||
public final void enterSafeMode() {
|
||||
synchronized(this) {
|
||||
// It only makes sense to do this before the system is ready
|
||||
|
||||
Reference in New Issue
Block a user