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

Commit 310824f4 authored by Santiago Etchebehere's avatar Santiago Etchebehere
Browse files

Expose method to read if themed icons are available.

Also remove unnecessary clearing of Glide cache.

Bug: 187535286
Test: manual (visually verified)

Change-Id: Ic683c86e6ec4fd4b34267dae0440801002d01292
parent 91a8fe9c
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -30,8 +30,6 @@ import com.android.customization.model.ResourceConstants;
import com.android.wallpaper.R;
import com.android.wallpaper.util.PreviewUtils;

import com.bumptech.glide.Glide;

import java.util.ArrayList;
import java.util.List;

@@ -99,7 +97,6 @@ public class LauncherGridOptionsProvider {
                mOptions.add(new GridOption(title, name, isSet, rows, cols,
                        mPreviewUtils.getUri(PREVIEW), previewCount, iconPath));
            }
            Glide.get(mContext).clearDiskCache();
        } catch (Exception e) {
            mOptions = null;
        }
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ public class ThemedIconSwitchProvider {
    }

    @WorkerThread
    protected boolean fetchThemedIconEnabled() {
    public boolean fetchThemedIconEnabled() {
        ContentResolver contentResolver = mContext.getContentResolver();
        try (Cursor cursor = contentResolver.query(
                mThemedIconUtils.getUriForPath(ICON_THEMED), /* projection= */