diff options
author | Roman Royer <romanroyer@yahoo.com> | 2016-05-04 19:04:36 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-06-09 14:12:23 -0700 |
commit | dc7a181d25860be8f0a96c5542f368540636d51b (patch) | |
tree | de65693e92227b137311aedb1394397b272656c3 /src/com/android | |
parent | e6790767f7db7db09e1c6936b217c35264c18247 (diff) | |
download | packages_apps_Settings-dc7a181d25860be8f0a96c5542f368540636d51b.zip packages_apps_Settings-dc7a181d25860be8f0a96c5542f368540636d51b.tar.gz packages_apps_Settings-dc7a181d25860be8f0a96c5542f368540636d51b.tar.bz2 |
Settings: Allow sorting Applications by size
Allow sorting applications by size in Settings->Apps just like in Settings->Storage/USB->Apps
Removed extra whitespace
Change-Id: I9e022162110e1feff20f257992086e66735e0f5e
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/settings/applications/ManageApplications.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/settings/applications/ManageApplications.java b/src/com/android/settings/applications/ManageApplications.java index 668f381..ba93038 100644 --- a/src/com/android/settings/applications/ManageApplications.java +++ b/src/com/android/settings/applications/ManageApplications.java @@ -539,9 +539,11 @@ public class ManageApplications extends InstrumentedFragment } mOptionsMenu.findItem(R.id.advanced).setVisible(mListType == LIST_TYPE_MAIN); - mOptionsMenu.findItem(R.id.sort_order_alpha).setVisible(mListType == LIST_TYPE_STORAGE + mOptionsMenu.findItem(R.id.sort_order_alpha).setVisible( + (mListType == LIST_TYPE_STORAGE || mListType == LIST_TYPE_MAIN) && mSortOrder != R.id.sort_order_alpha); - mOptionsMenu.findItem(R.id.sort_order_size).setVisible(mListType == LIST_TYPE_STORAGE + mOptionsMenu.findItem(R.id.sort_order_size).setVisible( + (mListType == LIST_TYPE_STORAGE || mListType == LIST_TYPE_MAIN) && mSortOrder != R.id.sort_order_size); mOptionsMenu.findItem(R.id.show_system).setVisible(!mShowSystem |