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

Commit 2037802c authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 12559614 from 34448f94 to 25Q1-release

Change-Id: I452626c9d4dfd36f15292e4fdec630c81e584016
parents f7f294d1 34448f94
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -43,7 +43,8 @@
    <application
        android:label="@string/app_label"
        android:supportsRtl="true"
        android:allowBackup="true">
        android:allowBackup="true"
        android:theme="@style/Theme.DocumentsUINoTitleBar">

        <activity
            android:name=".MainActivity"
+4 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="Theme.DocumentsUINoTitleBar" parent="android:Theme.Material.Light.NoActionBar" />
</resources>
 No newline at end of file
+10 −7
Original line number Diff line number Diff line
@@ -321,8 +321,6 @@ public class DirectoryFragment extends Fragment implements SwipeRefreshLayout.On
                }
                mActivity.refreshCurrentRootAndDirectory(AnimationView.ANIM_NONE);
            }
        } else {
            checkUriAndScheduleCheckIfNeeded(userId);
        }
    }

@@ -1387,12 +1385,17 @@ public class DirectoryFragment extends Fragment implements SwipeRefreshLayout.On
        // Remove thumbnail cache. We do this not because we're worried about stale thumbnails as it
        // should be covered by last modified value we store in thumbnail cache, but rather to give
        // the user a greater sense that contents are being reloaded.
        ThumbnailCache cache = DocumentsApplication.getThumbnailCache(getContext());
        Context context = getContext();
        if (context == null) {
            Log.w(TAG, "Fragment is not attached to an activity.");
        } else {
            ThumbnailCache cache = DocumentsApplication.getThumbnailCache(context);
            String[] ids = mModel.getModelIds();
            int numOfEvicts = Math.min(ids.length, CACHE_EVICT_LIMIT);
            for (int i = 0; i < numOfEvicts; ++i) {
                cache.removeUri(mModel.getItemUri(ids[i]), mModel.getItemUserId(ids[i]));
            }
        }

        final DocumentInfo doc = mActivity.getCurrentDirectory();
        if (doc == null && !mActivity.getSelectedUser().isQuietModeEnabled(mActivity)) {