Merge "Add Toggle Controllers to XML"
This commit is contained in:
committed by
Android (Google) Code Review
commit
f94f6d41d9
@@ -30,6 +30,8 @@ import java.util.List;
|
||||
* Abstract class to consolidate utility between preference controllers and act as an interface
|
||||
* for Slices. The abstract classes that inherit from this class will act as the direct interfaces
|
||||
* for each type when plugging into Slices.
|
||||
*
|
||||
* TODO (b/73074893) Add Lifecycle Setting method.
|
||||
*/
|
||||
public abstract class BasePreferenceController extends AbstractPreferenceController {
|
||||
|
||||
|
@@ -44,6 +44,11 @@ public class VisiblePatternProfilePreferenceController extends TogglePreferenceC
|
||||
|
||||
private Preference mPreference;
|
||||
|
||||
public VisiblePatternProfilePreferenceController(Context context) {
|
||||
this(context, null /* lifecycle */);
|
||||
}
|
||||
|
||||
// TODO (b/73074893) Replace this constructor without Lifecycle using setter method instead.
|
||||
public VisiblePatternProfilePreferenceController(Context context, Lifecycle lifecycle) {
|
||||
super(context, KEY_VISIBLE_PATTERN_PROFILE);
|
||||
mUm = (UserManager) context.getSystemService(Context.USER_SERVICE);
|
||||
|
Reference in New Issue
Block a user