Make some existing slices public.

Only PreferenceControllers with isPublicSlice() set to true are exposed
to other apps. Others will be Settings only.

Bug: 141088937
Test: robotests
Change-Id: I5934e89bc1b268fdd44acd630621fa46987728ff
This commit is contained in:
Yi-Ling Chuang
2019-11-27 18:33:34 +08:00
parent 617458b07c
commit 430c16c012
10 changed files with 75 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ import android.net.Uri;
import android.nfc.NfcAdapter;
import android.provider.Settings;
import android.util.Log;
import androidx.annotation.VisibleForTesting;
import androidx.preference.PreferenceScreen;
import androidx.preference.SwitchPreference;
@@ -90,7 +90,7 @@ public class NfcPreferenceController extends TogglePreferenceController
}
@Override
public boolean isSliceable() {
public boolean isPublicSlice() {
return true;
}

View File

@@ -77,7 +77,7 @@ public class SecureNfcPreferenceController extends TogglePreferenceController
}
@Override
public boolean isSliceable() {
public boolean isPublicSlice() {
return true;
}