Add page Settings->Security & lock screen->Lock screen preferences.
- add the new preference screen that contains configuration for lock screen notification, add user when locked, and owner info. - refactor SecuritySettings to use the new owner info controller. Fix: 36163515 Test: make RunSettingsRoboTests Change-Id: I3bada8f652f89ed0af7aebc03f0bf2f637296b4d
This commit is contained in:
@@ -31,6 +31,7 @@ import android.widget.EditText;
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
import com.android.internal.widget.LockPatternUtils;
|
||||
import com.android.settings.core.instrumentation.InstrumentedDialogFragment;
|
||||
import com.android.settings.security.OwnerInfoPreferenceController.OwnerInfoCallback;
|
||||
|
||||
public class OwnerInfoSettings extends InstrumentedDialogFragment implements OnClickListener {
|
||||
|
||||
@@ -76,8 +77,8 @@ public class OwnerInfoSettings extends InstrumentedDialogFragment implements OnC
|
||||
mLockPatternUtils.setOwnerInfoEnabled(!TextUtils.isEmpty(info), mUserId);
|
||||
mLockPatternUtils.setOwnerInfo(info, mUserId);
|
||||
|
||||
if (getTargetFragment() instanceof SecuritySettings.SecuritySubSettings) {
|
||||
((SecuritySettings.SecuritySubSettings) getTargetFragment()).updateOwnerInfo();
|
||||
if (getTargetFragment() instanceof OwnerInfoCallback) {
|
||||
((OwnerInfoCallback) getTargetFragment()).onOwnerInfoUpdated();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user