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:
Daniel Bright
2020-02-15 14:35:20 -08:00
parent 2eb9ef4d6f
commit c5dbc53ea5

View File

@@ -1,9 +1,10 @@
package com.android.settings;
import static com.android.internal.telephony.TelephonyIntents.SECRET_CODE_ACTION;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;
import com.android.settings.Settings.TestingSettingsActivity;
@@ -15,7 +16,7 @@ public class TestingSettingsBroadcastReceiver extends BroadcastReceiver {
@Override
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);
i.setClass(context, TestingSettingsActivity.class);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);