Replace WIFI_DISPLAY_SETTINGS with CAST_SETTINGS.
Bug: 20641986 Change-Id: I137dfc7ef41bdda2ce3e81c164767319c88159f1
This commit is contained in:
@@ -323,21 +323,6 @@ public final class Settings {
|
||||
public static final String ACTION_BLUETOOTH_SETTINGS =
|
||||
"android.settings.BLUETOOTH_SETTINGS";
|
||||
|
||||
/**
|
||||
* Activity Action: Show settings to allow configuration of Wifi Displays.
|
||||
* <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_WIFI_DISPLAY_SETTINGS =
|
||||
"android.settings.WIFI_DISPLAY_SETTINGS";
|
||||
|
||||
/**
|
||||
* Activity Action: Show settings to allow configuration of cast endpoints.
|
||||
* <p>
|
||||
|
||||
@@ -287,7 +287,7 @@ public abstract class RemoteDisplayProvider {
|
||||
*/
|
||||
public PendingIntent getSettingsPendingIntent() {
|
||||
if (mSettingsPendingIntent == null) {
|
||||
Intent settingsIntent = new Intent(Settings.ACTION_WIFI_DISPLAY_SETTINGS);
|
||||
Intent settingsIntent = new Intent(Settings.ACTION_CAST_SETTINGS);
|
||||
settingsIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
|
||||
| Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
|
||||
| Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||
|
||||
Reference in New Issue
Block a user