Skip to content

Commit

Permalink
Reverted again the catalog logic
Browse files Browse the repository at this point in the history
I think users here http://code.google.com/p/adw-launcher-android/issues/detail?id=15
are right.
The app catalogs might only show the apps marked by the user, so newly installed apps are invisible.

This change required to change the catalog filenames so users don't get angry with their catalogs
acting weird... so everyone should recreate their catalogs again.
  • Loading branch information
AnderWeb committed Oct 17, 2010
1 parent 6e7da08 commit 5434753
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/com/android/launcher/catalogue/AppCatalogueFilter.java
Expand Up @@ -19,7 +19,7 @@ public boolean checkAppInGroup(String className) {
if (mCatalogue != null) {
final SharedPreferences prefs = mCatalogue.getPreferences();
if (prefs != null)
result = prefs.getBoolean(className, true);
result = prefs.getBoolean(className, false);
}
return result;
}
Expand Down
Expand Up @@ -73,7 +73,7 @@ public void setTitleView(TextView v) {
}

private final static String PREF_GRP_NAME = "GrpName";
private final static String APP_GROUP_PREFS_PREFIX = "APP_GROUP_PREF_";
private final static String APP_GROUP_PREFS_PREFIX = "APP_CATALOG_";
private Context mContext = null;
private final AppCatalogueFilter mDrawerFilter = new AppCatalogueFilter();

Expand Down
6 changes: 3 additions & 3 deletions src/com/android/launcher/catalogue/AppInfoMList.java
Expand Up @@ -123,8 +123,8 @@ public void onClick(View v) {
AppListInfo tempAppListInfo = (AppListInfo) adapter.getItem(i);
boolean checked = tempAppListInfo.checked;
//ADW: Change to only store hidden apps
if (!checked)
editor.putBoolean(tempAppListInfo.className, false);
if (checked)
editor.putBoolean(tempAppListInfo.className, true);
else
editor.remove(tempAppListInfo.className);

Expand Down Expand Up @@ -179,7 +179,7 @@ private void updateAppList() {
tempAppListInfo.title = tempAppInfo.title.toString();
if (curAppGrp != null)
tempAppListInfo.checked = curAppGrp.getBoolean(
tempAppListInfo.className, true);
tempAppListInfo.className, false);
else
tempAppListInfo.checked = false;

Expand Down

0 comments on commit 5434753

Please sign in to comment.