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:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -77,7 +77,7 @@ public class SecureNfcPreferenceController extends TogglePreferenceController
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSliceable() {
|
||||
public boolean isPublicSlice() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user