Moving code to previous behavior
Undoing change to move to updated SystemApi version of secret code. This failed because the AndroidManifest was not updated. Rolling it back to previous state for now. Bug: 149604099 Test: make, flash Test: Moving code to previous behavior Change-Id: I8f3f9f4ef5c64dd9fa74bb9393446a9a1340f26e
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
package com.android.settings;
|
package com.android.settings;
|
||||||
|
|
||||||
|
import static com.android.internal.telephony.TelephonyIntents.SECRET_CODE_ACTION;
|
||||||
|
|
||||||
import android.content.BroadcastReceiver;
|
import android.content.BroadcastReceiver;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.telephony.TelephonyManager;
|
|
||||||
|
|
||||||
import com.android.settings.Settings.TestingSettingsActivity;
|
import com.android.settings.Settings.TestingSettingsActivity;
|
||||||
|
|
||||||
@@ -15,7 +16,7 @@ public class TestingSettingsBroadcastReceiver extends BroadcastReceiver {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
if (intent.getAction().equals(TelephonyManager.ACTION_SECRET_CODE)) {
|
if (intent.getAction().equals(SECRET_CODE_ACTION)) {
|
||||||
Intent i = new Intent(Intent.ACTION_MAIN);
|
Intent i = new Intent(Intent.ACTION_MAIN);
|
||||||
i.setClass(context, TestingSettingsActivity.class);
|
i.setClass(context, TestingSettingsActivity.class);
|
||||||
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
|
Reference in New Issue
Block a user