Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c24a4612 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Only display System section for current user." into nyc-mr1-dev

parents dc8a2d2b ce37ef51
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -300,10 +300,16 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment {
    }

    private void addItem(PreferenceGroup group, int titleRes, CharSequence title, int userId) {
        if (titleRes == R.string.storage_detail_system && mSystemSize <= 0) {
        if (titleRes == R.string.storage_detail_system) {
            if (mSystemSize <= 0) {
                Log.w(TAG, "Skipping System storage because its size is " + mSystemSize);
                return;
            }
            if (userId != UserHandle.myUserId()) {
                // Only display system on current user.
                return;
            }
        }
        StorageItemPreference item;
        if (mItemPoolIndex < mItemPreferencePool.size()) {
            item = mItemPreferencePool.get(mItemPoolIndex);