diff --git a/AnkiDroid/src/main/AndroidManifest.xml b/AnkiDroid/src/main/AndroidManifest.xml
index 8ef63cd25dbe..e1693d9b1c40 100644
--- a/AnkiDroid/src/main/AndroidManifest.xml
+++ b/AnkiDroid/src/main/AndroidManifest.xml
@@ -301,11 +301,13 @@
+
-
+ android:exported="false" />
sUpdateDeckStatusAsyncTask;
@@ -53,9 +52,8 @@ private WidgetStatus() {
public static void update(Context context) {
SharedPreferences preferences = AnkiDroidApp.getSharedPrefs(context);
sSmallWidgetEnabled = preferences.getBoolean("widgetSmallEnabled", false);
- sNotificationEnabled = Integer.parseInt(preferences.getString("minimumCardsDueForNotification", "1000001")) < 1000000;
- if ((sSmallWidgetEnabled || sNotificationEnabled)
- && ((sUpdateDeckStatusAsyncTask == null) || (sUpdateDeckStatusAsyncTask.getStatus() == AsyncTask.Status.FINISHED))) {
+ if (sSmallWidgetEnabled &&
+ ((sUpdateDeckStatusAsyncTask == null) || (sUpdateDeckStatusAsyncTask.getStatus() == AsyncTask.Status.FINISHED))) {
Timber.d("WidgetStatus.update(): updating");
sUpdateDeckStatusAsyncTask = new UpdateDeckStatusAsyncTask();
sUpdateDeckStatusAsyncTask.execute(context);
@@ -108,11 +106,6 @@ protected void onPostExecute(Context context) {
intent = new Intent(context, AnkiDroidWidgetSmall.UpdateService.class);
context.startService(intent);
}
- if (sNotificationEnabled) {
- Intent intent;
- intent = new Intent(context, NotificationService.class);
- context.startService(intent);
- }
}