mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-18 22:08:49 -04:00
[app] Bring categories back to basic app
This commit is contained in:
@@ -72,8 +72,11 @@ class MainViewController extends RecyclerView.ViewHolder {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @see CategoriesViewBinder
|
||||
*/
|
||||
public void bindCategoriesView() {
|
||||
throw new IllegalStateException("unimplemented");
|
||||
new CategoriesViewBinder(activity, frame);
|
||||
}
|
||||
|
||||
public void bindSwapView() {
|
||||
|
||||
@@ -9,7 +9,6 @@ import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
||||
|
||||
import org.fdroid.database.Category;
|
||||
import org.fdroid.database.FDroidDatabase;
|
||||
import org.fdroid.database.FDroidDatabaseHolder;
|
||||
import org.fdroid.fdroid.Preferences;
|
||||
import org.fdroid.fdroid.R;
|
||||
import org.fdroid.fdroid.UpdateService;
|
||||
@@ -10,18 +10,25 @@
|
||||
android:orderInCategory="0"
|
||||
android:title="@string/main_menu__latest_apps"
|
||||
app:showAsAction="ifRoom|withText" />
|
||||
<item
|
||||
android:id="@+id/categories"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_categories"
|
||||
android:orderInCategory="1"
|
||||
android:title="@string/main_menu__categories"
|
||||
app:showAsAction="ifRoom|withText" />
|
||||
<item
|
||||
android:id="@+id/updates"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_updates"
|
||||
android:orderInCategory="1"
|
||||
android:orderInCategory="2"
|
||||
android:title="@string/main_menu__updates"
|
||||
app:showAsAction="ifRoom|withText" />
|
||||
<item
|
||||
android:id="@+id/settings"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_settings"
|
||||
android:orderInCategory="2"
|
||||
android:orderInCategory="3"
|
||||
android:title="@string/menu_settings"
|
||||
app:showAsAction="ifRoom|withText" />
|
||||
</menu>
|
||||
Reference in New Issue
Block a user