Change "Long pressing work mode in quick settings" to managed profile settings
Test: Long pressing work mode can go to managed profile settings now. Bug: 34189626 Change-Id: I84820b1ce0a5693f36236c1bb512c99db3c6e9df
This commit is contained in:
@@ -31,6 +31,7 @@ import android.util.Log;
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.SettingsPreferenceFragment;
|
||||
import com.android.settings.Utils;
|
||||
import com.android.settingslib.RestrictedLockUtils;
|
||||
import com.android.settingslib.RestrictedSwitchPreference;
|
||||
|
||||
@@ -97,7 +98,8 @@ public class ManagedProfileSettings extends SettingsPreferenceFragment
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
// Return default managed profile for the current user.
|
||||
return Utils.getManagedProfile(mUserManager);
|
||||
}
|
||||
|
||||
private void loadDataAndPopulateUi() {
|
||||
|
Reference in New Issue
Block a user