Skip to content

Commit

Permalink
enable secondary user logout support by default
Browse files Browse the repository at this point in the history
Change-Id: I97620578ab8a34506b6bdf0cfe91c2f34000f58e
  • Loading branch information
thestinger authored and kdrag0n committed Jun 7, 2022
1 parent bf6704d commit 6b1ac47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class ActiveAdmin {
boolean requireAutoTime = false;
boolean forceEphemeralUsers = false;
boolean isNetworkLoggingEnabled = false;
boolean isLogoutEnabled = false;
boolean isLogoutEnabled = true;

// one notification after enabling + one more after reboots
static final int DEF_MAXIMUM_NETWORK_LOGGING_NOTIFICATIONS_SHOWN = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15832,11 +15832,11 @@ public void setLogoutEnabled(ComponentName admin, boolean enabled) {
@Override
public boolean isLogoutEnabled() {
if (!mHasFeature) {
return false;
return true;
}
synchronized (getLockObject()) {
ActiveAdmin deviceOwner = getDeviceOwnerAdminLocked();
return (deviceOwner != null) && deviceOwner.isLogoutEnabled;
return (deviceOwner == null) || deviceOwner.isLogoutEnabled;
}
}

Expand Down

0 comments on commit 6b1ac47

Please sign in to comment.