On Settings lockscreen changes send new safety status to Safety Center.
Bug: 215518847 Test: atest SettingsUnitTests Test: make RunSettingsRoboTests Change-Id: Id8e957e58c45195260157b2b61b93ecbc203164b
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.android.settings.safetycenter;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.app.settings.SettingsEnums;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.UserHandle;
|
||||
@@ -72,6 +73,13 @@ public final class LockScreenSafetySource {
|
||||
SafetyCenterManagerWrapper.get().sendSafetyCenterUpdate(context, safetySourceData);
|
||||
}
|
||||
|
||||
/** Notifies Safety Center of a change in lock screen settings. */
|
||||
public static void onLockScreenChange(Context context) {
|
||||
sendSafetyData(
|
||||
context,
|
||||
new ScreenLockPreferenceDetailsUtils(context, SettingsEnums.SAFETY_CENTER));
|
||||
}
|
||||
|
||||
private static IconAction createGearMenuIconAction(Context context,
|
||||
ScreenLockPreferenceDetailsUtils screenLockPreferenceDetailsUtils) {
|
||||
return screenLockPreferenceDetailsUtils.shouldShowGearMenu() ? new IconAction(
|
||||
|
Reference in New Issue
Block a user