Merge commit 'refs/merge-requests/26' of git://gitorious.org/f-droid/fdroidclient into merge-requests/26

This commit is contained in:
Ciaran Gultnieks 2013-04-16 09:44:14 +01:00
commit 010989f05b
3 changed files with 6 additions and 4 deletions

View File

@ -215,7 +215,10 @@ public class AppListManager {
} }
public void setCurrentCategory(String currentCategory) { public void setCurrentCategory(String currentCategory) {
this.currentCategory = currentCategory; if (!this.currentCategory.equals(currentCategory)){
this.currentCategory = currentCategory;
repopulateLists();
}
} }
static class WhatsNewComparator implements Comparator<DB.App> { static class WhatsNewComparator implements Comparator<DB.App> {

View File

@ -13,7 +13,6 @@ import org.fdroid.fdroid.views.AppListView;
abstract class AppListFragment extends Fragment implements AdapterView.OnItemClickListener { abstract class AppListFragment extends Fragment implements AdapterView.OnItemClickListener {
private AppListManager appListManager;
private FDroid parent; private FDroid parent;
protected abstract AppListAdapter getAppListAdapter(); protected abstract AppListAdapter getAppListAdapter();

View File

@ -51,8 +51,8 @@ public class AvailableAppsFragment extends AppListFragment implements AdapterVie
public void onItemSelected(AdapterView<?> parent, View view, int pos, public void onItemSelected(AdapterView<?> parent, View view, int pos,
long id) { long id) {
getAppListManager().setCurrentCategory(parent.getItemAtPosition(pos).toString()); String category = parent.getItemAtPosition(pos).toString();
getAppListManager().repopulateLists(); getAppListManager().setCurrentCategory(category);
} }
@Override @Override