summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/cyngn/theme/chooser/ChooserActivity.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/cyngn/theme/chooser/ChooserActivity.java b/src/com/cyngn/theme/chooser/ChooserActivity.java
index e6d1fd7..a852df7 100644
--- a/src/com/cyngn/theme/chooser/ChooserActivity.java
+++ b/src/com/cyngn/theme/chooser/ChooserActivity.java
@@ -150,7 +150,6 @@ public class ChooserActivity extends FragmentActivity
mSelector.setOnOpenCloseListener(mOpenCloseListener);
mService = (ThemeManager) getSystemService(Context.THEME_SERVICE);
- getSupportLoaderManager().restartLoader(LOADER_ID_APPLIED, null, this);
mShopThemesLayout = findViewById(R.id.shop_themes_layout);
@@ -592,6 +591,7 @@ public class ChooserActivity extends FragmentActivity
String selection = null;
String selectionArgs[] = null;
String sortOrder = null;
+ String[] projection = null;
Uri contentUri = null;
switch (id) {
@@ -604,6 +604,7 @@ public class ChooserActivity extends FragmentActivity
+ "(" + ThemesColumns.PKG_NAME + "='" + mAppliedBaseTheme + "') DESC, "
+ ThemesColumns.INSTALL_TIME + " DESC";
contentUri = ThemesColumns.CONTENT_URI;
+ projection = new String[] {ThemesColumns.PKG_NAME, ThemesColumns.TITLE};
break;
case LOADER_ID_APPLIED:
//TODO: Mix n match query should only be done once
@@ -614,7 +615,7 @@ public class ChooserActivity extends FragmentActivity
}
- return new CursorLoader(this, contentUri, null, selection,
+ return new CursorLoader(this, contentUri, projection, selection,
selectionArgs, sortOrder);
}