summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherApplication.java
diff options
context:
space:
mode:
authorhuiwan <huiwan@codeaurora.org>2014-11-10 10:35:03 -0800
committerRajesh Yengisetty <rajesh@cyngn.com>2014-11-21 00:13:25 +0000
commit9b398417ff00bb67a43579c748fd335effad1c5b (patch)
treeaa112a7fc0d0128df46e63795c4717f9263e2cf4 /src/com/android/launcher3/LauncherApplication.java
parent783be63c0a6d9b47f900c5d711a6a1663f1ca112 (diff)
downloadandroid_packages_apps_Trebuchet-9b398417ff00bb67a43579c748fd335effad1c5b.tar.gz
android_packages_apps_Trebuchet-9b398417ff00bb67a43579c748fd335effad1c5b.tar.bz2
android_packages_apps_Trebuchet-9b398417ff00bb67a43579c748fd335effad1c5b.zip
Launcher: show unread notify info number at APP icon on Launcher
Show APP's unread info number at Launcher: - Register a receiver to receive the UNREAD_CHANGED event to update the APP icon - When the unread number changed, recreate the icon bitmap of icon cache Change-Id: I7dd0fb2c29959f1584682965fb1476e3f3c77739
Diffstat (limited to 'src/com/android/launcher3/LauncherApplication.java')
-rw-r--r--src/com/android/launcher3/LauncherApplication.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/LauncherApplication.java b/src/com/android/launcher3/LauncherApplication.java
index 8b179f1e7..f0a08ffbe 100644
--- a/src/com/android/launcher3/LauncherApplication.java
+++ b/src/com/android/launcher3/LauncherApplication.java
@@ -19,9 +19,13 @@ package com.android.launcher3;
import android.app.Application;
public class LauncherApplication extends Application {
+ public static boolean LAUNCHER_SHOW_UNREAD_NUMBER;
+
@Override
public void onCreate() {
super.onCreate();
+ LAUNCHER_SHOW_UNREAD_NUMBER = getResources().getBoolean(
+ R.bool.config_launcher_show_unread_number);
LauncherAppState.setApplicationContext(this);
LauncherAppState.getInstance();
}
@@ -31,4 +35,4 @@ public class LauncherApplication extends Application {
super.onTerminate();
LauncherAppState.getInstance().onTerminate();
}
-} \ No newline at end of file
+}