Do no convert FaceSettingsAttention to slice.
The check logic of this preference requires a page loading prior to slice auto convertion, so it is not suitable to become a slice. Converting it to a slice will lead to an app crash. Fixes: 145723632 Test: robotests Change-Id: Ie6eafb244e9a1cc9267f6b747c8e357d239e688e
This commit is contained in:
@@ -26,7 +26,6 @@ import androidx.preference.PreferenceScreen;
|
||||
import androidx.preference.SwitchPreference;
|
||||
|
||||
import com.android.settings.Utils;
|
||||
import com.android.settings.core.TogglePreferenceController;
|
||||
|
||||
/**
|
||||
* Preference controller that manages the ability to use face authentication with/without
|
||||
@@ -117,6 +116,11 @@ public class FaceSettingsAttentionPreferenceController extends FaceSettingsPrefe
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSliceable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
return AVAILABLE;
|
||||
|
||||
Reference in New Issue
Block a user