Adding ability to add multiple keyguard widgets
Bug: 7381803 Change-Id: I099f47a5cc43199635fed9ad2c4d03d79004e4f4
This commit is contained in:
@@ -808,11 +808,8 @@
|
|||||||
<!-- Title for PreferenceScreen to launch picker for security method when there is none [CHAR LIMIT=22] -->
|
<!-- Title for PreferenceScreen to launch picker for security method when there is none [CHAR LIMIT=22] -->
|
||||||
<string name="unlock_set_unlock_launch_picker_title">Screen lock</string>
|
<string name="unlock_set_unlock_launch_picker_title">Screen lock</string>
|
||||||
|
|
||||||
<!-- Title for PreferenceScreen to launch picker for a user-selected time & data widget that will live on lock screen [CHAR LIMIT=22] -->
|
|
||||||
<string name="choose_lockscreen_status_widget_picker_title">Status widget</string>
|
|
||||||
|
|
||||||
<!-- Title for PreferenceScreen to launch picker for a user-selected widget that will live on lock screen [CHAR LIMIT=22] -->
|
<!-- Title for PreferenceScreen to launch picker for a user-selected widget that will live on lock screen [CHAR LIMIT=22] -->
|
||||||
<string name="choose_user_selected_lockscreen_widget_picker_title">Other widget</string>
|
<string name="choose_user_selected_lockscreen_widget_picker_title">Add widget</string>
|
||||||
|
|
||||||
<!-- String to display if there is no user-selected widget on lock screen [CHAR LIMIT=22] -->
|
<!-- String to display if there is no user-selected widget on lock screen [CHAR LIMIT=22] -->
|
||||||
<string name="widget_none">None</string>
|
<string name="widget_none">None</string>
|
||||||
|
@@ -51,12 +51,6 @@
|
|||||||
android:key="power_button_instantly_locks"
|
android:key="power_button_instantly_locks"
|
||||||
android:title="@string/lockpattern_settings_enable_power_button_instantly_locks"/>
|
android:title="@string/lockpattern_settings_enable_power_button_instantly_locks"/>
|
||||||
|
|
||||||
<PreferenceScreen
|
|
||||||
android:key="choose_lockscreen_status_widget"
|
|
||||||
android:title="@string/choose_lockscreen_status_widget_picker_title"
|
|
||||||
android:summary=""
|
|
||||||
android:persistent="false"/>
|
|
||||||
|
|
||||||
<PreferenceScreen
|
<PreferenceScreen
|
||||||
android:key="choose_user_selected_lockscreen_widget"
|
android:key="choose_user_selected_lockscreen_widget"
|
||||||
android:title="@string/choose_user_selected_lockscreen_widget_picker_title"
|
android:title="@string/choose_user_selected_lockscreen_widget_picker_title"
|
||||||
|
@@ -26,12 +26,6 @@
|
|||||||
android:summary="@string/unlock_set_unlock_mode_none"
|
android:summary="@string/unlock_set_unlock_mode_none"
|
||||||
android:persistent="false"/>
|
android:persistent="false"/>
|
||||||
|
|
||||||
<PreferenceScreen
|
|
||||||
android:key="choose_lockscreen_status_widget"
|
|
||||||
android:title="@string/choose_lockscreen_status_widget_picker_title"
|
|
||||||
android:summary=""
|
|
||||||
android:persistent="false"/>
|
|
||||||
|
|
||||||
<PreferenceScreen
|
<PreferenceScreen
|
||||||
android:key="choose_user_selected_lockscreen_widget"
|
android:key="choose_user_selected_lockscreen_widget"
|
||||||
android:title="@string/choose_user_selected_lockscreen_widget_picker_title"
|
android:title="@string/choose_user_selected_lockscreen_widget_picker_title"
|
||||||
|
@@ -38,12 +38,6 @@
|
|||||||
android:key="power_button_instantly_locks"
|
android:key="power_button_instantly_locks"
|
||||||
android:title="@string/lockpattern_settings_enable_power_button_instantly_locks"/>
|
android:title="@string/lockpattern_settings_enable_power_button_instantly_locks"/>
|
||||||
|
|
||||||
<PreferenceScreen
|
|
||||||
android:key="choose_lockscreen_status_widget"
|
|
||||||
android:title="@string/choose_lockscreen_status_widget_picker_title"
|
|
||||||
android:summary=""
|
|
||||||
android:persistent="false"/>
|
|
||||||
|
|
||||||
<PreferenceScreen
|
<PreferenceScreen
|
||||||
android:key="choose_user_selected_lockscreen_widget"
|
android:key="choose_user_selected_lockscreen_widget"
|
||||||
android:title="@string/choose_user_selected_lockscreen_widget_picker_title"
|
android:title="@string/choose_user_selected_lockscreen_widget_picker_title"
|
||||||
|
@@ -42,12 +42,6 @@
|
|||||||
android:key="power_button_instantly_locks"
|
android:key="power_button_instantly_locks"
|
||||||
android:title="@string/lockpattern_settings_enable_power_button_instantly_locks"/>
|
android:title="@string/lockpattern_settings_enable_power_button_instantly_locks"/>
|
||||||
|
|
||||||
<PreferenceScreen
|
|
||||||
android:key="choose_lockscreen_status_widget"
|
|
||||||
android:title="@string/choose_lockscreen_status_widget_picker_title"
|
|
||||||
android:summary=""
|
|
||||||
android:persistent="false"/>
|
|
||||||
|
|
||||||
<PreferenceScreen
|
<PreferenceScreen
|
||||||
android:key="choose_user_selected_lockscreen_widget"
|
android:key="choose_user_selected_lockscreen_widget"
|
||||||
android:title="@string/choose_user_selected_lockscreen_widget_picker_title"
|
android:title="@string/choose_user_selected_lockscreen_widget_picker_title"
|
||||||
|
@@ -38,12 +38,6 @@
|
|||||||
android:key="power_button_instantly_locks"
|
android:key="power_button_instantly_locks"
|
||||||
android:title="@string/lockpattern_settings_enable_power_button_instantly_locks"/>
|
android:title="@string/lockpattern_settings_enable_power_button_instantly_locks"/>
|
||||||
|
|
||||||
<PreferenceScreen
|
|
||||||
android:key="choose_lockscreen_status_widget"
|
|
||||||
android:title="@string/choose_lockscreen_status_widget_picker_title"
|
|
||||||
android:summary=""
|
|
||||||
android:persistent="false"/>
|
|
||||||
|
|
||||||
<PreferenceScreen
|
<PreferenceScreen
|
||||||
android:key="choose_user_selected_lockscreen_widget"
|
android:key="choose_user_selected_lockscreen_widget"
|
||||||
android:title="@string/choose_user_selected_lockscreen_widget_picker_title"
|
android:title="@string/choose_user_selected_lockscreen_widget_picker_title"
|
||||||
|
@@ -33,19 +33,21 @@ import android.content.Intent;
|
|||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.content.pm.ResolveInfo;
|
import android.content.pm.ResolveInfo;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.os.IBinder;
|
||||||
|
import android.os.RemoteException;
|
||||||
|
import android.os.ServiceManager;
|
||||||
import android.os.UserHandle;
|
import android.os.UserHandle;
|
||||||
import android.os.Vibrator;
|
|
||||||
import android.preference.CheckBoxPreference;
|
import android.preference.CheckBoxPreference;
|
||||||
import android.preference.ListPreference;
|
import android.preference.ListPreference;
|
||||||
import android.preference.Preference;
|
import android.preference.Preference;
|
||||||
import android.preference.Preference.OnPreferenceChangeListener;
|
import android.preference.Preference.OnPreferenceChangeListener;
|
||||||
import android.preference.PreferenceCategory;
|
|
||||||
import android.preference.PreferenceGroup;
|
import android.preference.PreferenceGroup;
|
||||||
import android.preference.PreferenceScreen;
|
import android.preference.PreferenceScreen;
|
||||||
import android.provider.Settings;
|
import android.provider.Settings;
|
||||||
import android.security.KeyStore;
|
import android.security.KeyStore;
|
||||||
import android.telephony.TelephonyManager;
|
import android.telephony.TelephonyManager;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import android.view.IWindowManager;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import com.android.internal.widget.LockPatternUtils;
|
import com.android.internal.widget.LockPatternUtils;
|
||||||
@@ -63,9 +65,7 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
|
|
||||||
// Lock Settings
|
// Lock Settings
|
||||||
private static final String KEY_UNLOCK_SET_OR_CHANGE = "unlock_set_or_change";
|
private static final String KEY_UNLOCK_SET_OR_CHANGE = "unlock_set_or_change";
|
||||||
private static final String KEY_CHOOSE_LOCKSCREEN_STATUS_WIDGET =
|
private static final String KEY_CHOOSE_LOCKSCREEN_WIDGET =
|
||||||
"choose_lockscreen_status_widget";
|
|
||||||
private static final String KEY_CHOOSE_USER_SELECTED_LOCKSCREEN_WIDGET =
|
|
||||||
"choose_user_selected_lockscreen_widget";
|
"choose_user_selected_lockscreen_widget";
|
||||||
private static final String KEY_BIOMETRIC_WEAK_IMPROVE_MATCHING =
|
private static final String KEY_BIOMETRIC_WEAK_IMPROVE_MATCHING =
|
||||||
"biometric_weak_improve_matching";
|
"biometric_weak_improve_matching";
|
||||||
@@ -81,10 +81,8 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
private static final int SET_OR_CHANGE_LOCK_METHOD_REQUEST = 123;
|
private static final int SET_OR_CHANGE_LOCK_METHOD_REQUEST = 123;
|
||||||
private static final int CONFIRM_EXISTING_FOR_BIOMETRIC_WEAK_IMPROVE_REQUEST = 124;
|
private static final int CONFIRM_EXISTING_FOR_BIOMETRIC_WEAK_IMPROVE_REQUEST = 124;
|
||||||
private static final int CONFIRM_EXISTING_FOR_BIOMETRIC_WEAK_LIVELINESS_OFF = 125;
|
private static final int CONFIRM_EXISTING_FOR_BIOMETRIC_WEAK_LIVELINESS_OFF = 125;
|
||||||
private static final int REQUEST_PICK_USER_SELECTED_APPWIDGET = 126;
|
private static final int REQUEST_PICK_APPWIDGET = 126;
|
||||||
private static final int REQUEST_PICK_STATUS_APPWIDGET = 127;
|
private static final int REQUEST_CREATE_APPWIDGET = 127;
|
||||||
private static final int REQUEST_CREATE_USER_SELECTED_APPWIDGET = 128;
|
|
||||||
private static final int REQUEST_CREATE_STATUS_APPWIDGET = 129;
|
|
||||||
|
|
||||||
// Misc Settings
|
// Misc Settings
|
||||||
private static final String KEY_SIM_LOCK = "sim_lock";
|
private static final String KEY_SIM_LOCK = "sim_lock";
|
||||||
@@ -220,47 +218,6 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Preference pickStatusWidget = root.findPreference(KEY_CHOOSE_LOCKSCREEN_STATUS_WIDGET);
|
|
||||||
if (pickStatusWidget != null) {
|
|
||||||
AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(getActivity());
|
|
||||||
int appWidgetId = getStatusAppWidgetId();
|
|
||||||
if (appWidgetId == -1) {
|
|
||||||
pickStatusWidget.setSummary(getResources().getString(R.string.widget_default));
|
|
||||||
} else {
|
|
||||||
AppWidgetProviderInfo appWidget = appWidgetManager.getAppWidgetInfo(appWidgetId);
|
|
||||||
if (appWidget != null) {
|
|
||||||
pickStatusWidget.setSummary(appWidget.label);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// TEMP: disable this for now
|
|
||||||
PreferenceCategory security =
|
|
||||||
(PreferenceCategory) root.findPreference(KEY_SECURITY_CATEGORY);
|
|
||||||
if (security != null) {
|
|
||||||
security.removePreference(pickStatusWidget);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Preference pickLockscreenWidget =
|
|
||||||
root.findPreference(KEY_CHOOSE_USER_SELECTED_LOCKSCREEN_WIDGET);
|
|
||||||
if (pickLockscreenWidget != null) {
|
|
||||||
AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(getActivity());
|
|
||||||
int appWidgetId = getUserSelectedAppWidgetId();
|
|
||||||
if (appWidgetId == -1) {
|
|
||||||
pickLockscreenWidget.setSummary(getResources().getString(R.string.widget_none));
|
|
||||||
} else {
|
|
||||||
AppWidgetProviderInfo appWidget = appWidgetManager.getAppWidgetInfo(appWidgetId);
|
|
||||||
if (appWidget != null) {
|
|
||||||
pickLockscreenWidget.setSummary(appWidget.label);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// TEMP: disable this for now
|
|
||||||
PreferenceCategory security =
|
|
||||||
(PreferenceCategory) root.findPreference(KEY_SECURITY_CATEGORY);
|
|
||||||
if (security != null) {
|
|
||||||
security.removePreference(pickLockscreenWidget);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Append the rest of the settings
|
// Append the rest of the settings
|
||||||
addPreferencesFromResource(R.xml.security_settings_misc);
|
addPreferencesFromResource(R.xml.security_settings_misc);
|
||||||
|
|
||||||
@@ -314,26 +271,6 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getStatusAppWidgetId() {
|
|
||||||
int appWidgetId = -1;
|
|
||||||
String appWidgetIdString = Settings.Secure.getString(
|
|
||||||
getContentResolver(), Settings.Secure.LOCK_SCREEN_STATUS_APPWIDGET_ID);
|
|
||||||
if (appWidgetIdString != null) {;
|
|
||||||
appWidgetId = (int) Integer.decode(appWidgetIdString);
|
|
||||||
}
|
|
||||||
return appWidgetId;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int getUserSelectedAppWidgetId() {
|
|
||||||
int appWidgetId = -1;
|
|
||||||
String appWidgetIdString = Settings.Secure.getString(
|
|
||||||
getContentResolver(), Settings.Secure.LOCK_SCREEN_USER_SELECTED_APPWIDGET_ID);
|
|
||||||
if (appWidgetIdString != null) {;
|
|
||||||
appWidgetId = (int) Integer.decode(appWidgetIdString);
|
|
||||||
}
|
|
||||||
return appWidgetId;
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean isNonMarketAppsAllowed() {
|
private boolean isNonMarketAppsAllowed() {
|
||||||
return Settings.Global.getInt(getContentResolver(),
|
return Settings.Global.getInt(getContentResolver(),
|
||||||
Settings.Global.INSTALL_NON_MARKET_APPS, 0) > 0;
|
Settings.Global.INSTALL_NON_MARKET_APPS, 0) > 0;
|
||||||
@@ -555,22 +492,10 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
if (KEY_UNLOCK_SET_OR_CHANGE.equals(key)) {
|
if (KEY_UNLOCK_SET_OR_CHANGE.equals(key)) {
|
||||||
startFragment(this, "com.android.settings.ChooseLockGeneric$ChooseLockGenericFragment",
|
startFragment(this, "com.android.settings.ChooseLockGeneric$ChooseLockGenericFragment",
|
||||||
SET_OR_CHANGE_LOCK_METHOD_REQUEST, null);
|
SET_OR_CHANGE_LOCK_METHOD_REQUEST, null);
|
||||||
} else if (KEY_CHOOSE_USER_SELECTED_LOCKSCREEN_WIDGET.equals(key)) {
|
} else if (KEY_CHOOSE_LOCKSCREEN_WIDGET.equals(key)) {
|
||||||
launchPickActivityIntent(AppWidgetProviderInfo.WIDGET_FEATURES_NONE,
|
launchPickActivityIntent(AppWidgetProviderInfo.WIDGET_FEATURES_NONE,
|
||||||
R.string.widget_none, 0, new ComponentName("", ""), EXTRA_NO_WIDGET,
|
R.string.widget_none, 0, new ComponentName("", ""), EXTRA_NO_WIDGET,
|
||||||
REQUEST_PICK_USER_SELECTED_APPWIDGET);
|
REQUEST_PICK_APPWIDGET);
|
||||||
} else if (KEY_CHOOSE_LOCKSCREEN_STATUS_WIDGET.equals(key)) {
|
|
||||||
int defaultIconId;
|
|
||||||
ComponentName clock = new ComponentName(
|
|
||||||
"com.google.android.deskclock", "com.android.deskclock.DeskClock");
|
|
||||||
try {
|
|
||||||
defaultIconId = getActivity().getPackageManager().getActivityInfo(clock, 0).icon;
|
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
|
||||||
defaultIconId = 0;
|
|
||||||
}
|
|
||||||
launchPickActivityIntent(AppWidgetProviderInfo.WIDGET_FEATURES_STATUS,
|
|
||||||
R.string.widget_default, defaultIconId, clock, EXTRA_DEFAULT_WIDGET,
|
|
||||||
REQUEST_PICK_STATUS_APPWIDGET);
|
|
||||||
} else if (KEY_BIOMETRIC_WEAK_IMPROVE_MATCHING.equals(key)) {
|
} else if (KEY_BIOMETRIC_WEAK_IMPROVE_MATCHING.equals(key)) {
|
||||||
ChooseLockSettingsHelper helper =
|
ChooseLockSettingsHelper helper =
|
||||||
new ChooseLockSettingsHelper(this.getActivity(), this);
|
new ChooseLockSettingsHelper(this.getActivity(), this);
|
||||||
@@ -651,14 +576,10 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
// is called by grabbing the value from lockPatternUtils. We can't set it here
|
// is called by grabbing the value from lockPatternUtils. We can't set it here
|
||||||
// because mBiometricWeakLiveliness could be null
|
// because mBiometricWeakLiveliness could be null
|
||||||
return;
|
return;
|
||||||
} else if (requestCode == REQUEST_PICK_USER_SELECTED_APPWIDGET ||
|
} else if (requestCode == REQUEST_PICK_APPWIDGET || requestCode == REQUEST_CREATE_APPWIDGET) {
|
||||||
requestCode == REQUEST_PICK_STATUS_APPWIDGET ||
|
|
||||||
requestCode == REQUEST_CREATE_USER_SELECTED_APPWIDGET ||
|
|
||||||
requestCode == REQUEST_CREATE_STATUS_APPWIDGET) {
|
|
||||||
int appWidgetId = (data == null) ? -1 : data.getIntExtra(
|
int appWidgetId = (data == null) ? -1 : data.getIntExtra(
|
||||||
AppWidgetManager.EXTRA_APPWIDGET_ID, -1);
|
AppWidgetManager.EXTRA_APPWIDGET_ID, -1);
|
||||||
if ((requestCode == REQUEST_PICK_USER_SELECTED_APPWIDGET ||
|
if ((requestCode == REQUEST_PICK_APPWIDGET) &&
|
||||||
requestCode == REQUEST_PICK_STATUS_APPWIDGET) &&
|
|
||||||
resultCode == Activity.RESULT_OK) {
|
resultCode == Activity.RESULT_OK) {
|
||||||
AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(getActivity());
|
AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(getActivity());
|
||||||
boolean defaultOrNoWidget = data.getBooleanExtra(EXTRA_NO_WIDGET, false) ||
|
boolean defaultOrNoWidget = data.getBooleanExtra(EXTRA_NO_WIDGET, false) ||
|
||||||
@@ -669,16 +590,13 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
appWidget = appWidgetManager.getAppWidgetInfo(appWidgetId);
|
appWidget = appWidgetManager.getAppWidgetInfo(appWidgetId);
|
||||||
}
|
}
|
||||||
|
|
||||||
int newRequestCode = requestCode == REQUEST_PICK_USER_SELECTED_APPWIDGET ?
|
|
||||||
REQUEST_CREATE_USER_SELECTED_APPWIDGET :
|
|
||||||
REQUEST_CREATE_STATUS_APPWIDGET;
|
|
||||||
if (!defaultOrNoWidget && appWidget.configure != null) {
|
if (!defaultOrNoWidget && appWidget.configure != null) {
|
||||||
// Launch over to configure widget, if needed
|
// Launch over to configure widget, if needed
|
||||||
Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_CONFIGURE);
|
Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_CONFIGURE);
|
||||||
intent.setComponent(appWidget.configure);
|
intent.setComponent(appWidget.configure);
|
||||||
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
|
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
|
||||||
|
|
||||||
startActivityForResultSafely(intent, newRequestCode);
|
startActivityForResultSafely(intent, REQUEST_CREATE_APPWIDGET);
|
||||||
} else {
|
} else {
|
||||||
// Otherwise just add it
|
// Otherwise just add it
|
||||||
if (defaultOrNoWidget) {
|
if (defaultOrNoWidget) {
|
||||||
@@ -686,22 +604,17 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
AppWidgetHost.deleteAppWidgetIdForSystem(appWidgetId);
|
AppWidgetHost.deleteAppWidgetIdForSystem(appWidgetId);
|
||||||
data.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1);
|
data.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1);
|
||||||
}
|
}
|
||||||
onActivityResult(newRequestCode, Activity.RESULT_OK, data);
|
onActivityResult(REQUEST_CREATE_APPWIDGET, Activity.RESULT_OK, data);
|
||||||
}
|
}
|
||||||
} else if ((requestCode == REQUEST_CREATE_USER_SELECTED_APPWIDGET ||
|
} else if (requestCode == REQUEST_CREATE_APPWIDGET && resultCode == Activity.RESULT_OK) {
|
||||||
requestCode == REQUEST_CREATE_STATUS_APPWIDGET) &&
|
mLockPatternUtils.addAppWidget(appWidgetId, 0);
|
||||||
resultCode == Activity.RESULT_OK) {
|
|
||||||
// If a widget existed before, delete it
|
IBinder b = ServiceManager.getService(Context.WINDOW_SERVICE);
|
||||||
int oldAppWidgetId = requestCode == REQUEST_CREATE_USER_SELECTED_APPWIDGET ?
|
IWindowManager iWm = IWindowManager.Stub.asInterface(b);
|
||||||
getUserSelectedAppWidgetId() : getStatusAppWidgetId();
|
try {
|
||||||
if (oldAppWidgetId != -1) {
|
iWm.lockNow(null);
|
||||||
AppWidgetHost.deleteAppWidgetIdForSystem(oldAppWidgetId);
|
} catch (RemoteException e) {
|
||||||
}
|
}
|
||||||
Settings.Secure.putString(getContentResolver(),
|
|
||||||
(requestCode == REQUEST_CREATE_USER_SELECTED_APPWIDGET ?
|
|
||||||
Settings.Secure.LOCK_SCREEN_USER_SELECTED_APPWIDGET_ID :
|
|
||||||
Settings.Secure.LOCK_SCREEN_STATUS_APPWIDGET_ID),
|
|
||||||
Integer.toString(appWidgetId));
|
|
||||||
} else {
|
} else {
|
||||||
AppWidgetHost.deleteAppWidgetIdForSystem(appWidgetId);
|
AppWidgetHost.deleteAppWidgetIdForSystem(appWidgetId);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user