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: Ic2260aa9dbf9e42f7e3c532aca329d2ba3cd1421
This commit is contained in:
Ricky Wai
2017-02-01 15:23:50 +00:00
parent de0fb617a1
commit 38bb832e7d
2 changed files with 17 additions and 1 deletions

View File

@@ -842,6 +842,22 @@ public final class Settings {
public static final String ACTION_SYSTEM_UPDATE_SETTINGS =
"android.settings.SYSTEM_UPDATE_SETTINGS";
/**
* Activity Action: Show settings for managed profile settings.
* <p>
* In some cases, a matching Activity may not exist, so ensure you
* safeguard against this.
* <p>
* Input: Nothing.
* <p>
* Output: Nothing.
*
* @hide
*/
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
public static final String ACTION_MANAGED_PROFILE_SETTINGS =
"android.settings.MANAGED_PROFILE_SETTINGS";
/**
* Activity Action: Show settings to allow configuration of sync settings.
* <p>

View File

@@ -61,7 +61,7 @@ public class WorkModeTile extends QSTile<QSTile.BooleanState> implements
@Override
public Intent getLongClickIntent() {
return new Intent(Settings.ACTION_SYNC_SETTINGS);
return new Intent(Settings.ACTION_MANAGED_PROFILE_SETTINGS);
}
@Override