Skip to content

Commit

Permalink
Some small optimizations to App List
Browse files Browse the repository at this point in the history
  • Loading branch information
itachi1706 committed Sep 3, 2016
1 parent f8bf30b commit 3950914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public boolean onCreateOptionsMenu(Menu menu) {
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.systemapp: item.setChecked(!item.isChecked()); checkSystem = item.isChecked();
eval(item.isChecked()); return true;
eval(checkSystem); return true;
case R.id.sortapi: item.setChecked(!item.isChecked()); sortByApi = item.isChecked();
eval(checkSystem); return true;
default: return super.onOptionsItemSelected(item);
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/menu/modules_applist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:id="@+id/systemapp" android:title="Show System Apps"
android:orderInCategory="96" android:checkable="true" app:showAsAction="never" />
android:orderInCategory="50" android:checkable="true" app:showAsAction="never" />
<item android:id="@+id/sortapi" android:title="Sort by API Version"
android:orderInCategory="97" android:checkable="true" app:showAsAction="never" />
android:orderInCategory="51" android:checkable="true" app:showAsAction="never" />
</menu>

0 comments on commit 3950914

Please sign in to comment.