|
@@ -48,11 +48,12 @@ public class DataManager extends Application {
|
|
|
loadWeatherIndex();
|
|
|
}
|
|
|
|
|
|
- public static void registerContentObserver(ContentObserver recentObserver, ContentObserver contactObserver) {
|
|
|
+ public static void registerContentObserver(ContentObserver recentObserver, ContentObserver contactObserver, ContentObserver settingObserver) {
|
|
|
if (Constant.DEBUG)
|
|
|
return;
|
|
|
sContext.getContentResolver().registerContentObserver(MetaData.TABLE_URI_RECENT, true, recentObserver);
|
|
|
sContext.getContentResolver().registerContentObserver(MetaData.TABLE_URI_CONTACT, true, contactObserver);
|
|
|
+ sContext.getContentResolver().registerContentObserver(MetaData.TABLE_URI_SETTING, true, settingObserver);
|
|
|
}
|
|
|
|
|
|
public static List<AppModel> loadInstalledApps() {
|
|
@@ -104,7 +105,7 @@ public class DataManager extends Application {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void loadSetting() {
|
|
|
+ public static void loadSetting() {
|
|
|
if (Constant.DEBUG) {
|
|
|
loadQuickApps("");
|
|
|
} else {
|
|
@@ -116,7 +117,7 @@ public class DataManager extends Application {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void loadQuickApps(String quickContent) {
|
|
|
+ public static void loadQuickApps(String quickContent) {
|
|
|
if (Constant.DEBUG) {
|
|
|
for (int i = 0; i < Constant.COUNT_QUICK_APP; i++) {
|
|
|
if (mInstalledAppsList.size() > i) {
|