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

Commit c5ad2c20 authored by Santiago Etchebehere's avatar Santiago Etchebehere
Browse files

Hook WallpaperPicker related APIs to ThemePicker

Make the Wallpapers section function as the regular
WallpaperPicker

Bug: 120559978
Change-Id: I7a3aa736abf220143f8d2ce7852fade5f7abd328
parent 79ce19b8
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -38,7 +38,8 @@ import com.android.wallpaper.module.InjectorProvider;
import com.android.wallpaper.module.UserEventLogger;
import com.android.wallpaper.picker.CategoryFragment;
import com.android.wallpaper.picker.CategoryFragment.CategoryFragmentHost;
import com.android.wallpaper.picker.MyPhotosLauncher.PermissionChangedListener;
import com.android.wallpaper.picker.MyPhotosStarter;
import com.android.wallpaper.picker.MyPhotosStarter.PermissionChangedListener;
import com.android.wallpaper.picker.TopLevelPickerActivity;
import com.android.wallpaper.picker.WallpaperPickerDelegate;
import com.android.wallpaper.picker.WallpapersUiContainer;
@@ -142,17 +143,17 @@ public class CustomizationPickerActivity extends FragmentActivity implements Wal

    @Override
    public void requestExternalStoragePermission(PermissionChangedListener listener) {

        mDelegate.requestExternalStoragePermission(listener);
    }

    @Override
    public boolean isReadExternalStoragePermissionGranted() {
        return false;
        return mDelegate.isReadExternalStoragePermissionGranted();
    }

    @Override
    public void showViewOnlyPreview(WallpaperInfo wallpaperInfo) {

        mDelegate.showViewOnlyPreview(wallpaperInfo);
    }

    /**
@@ -179,6 +180,11 @@ public class CustomizationPickerActivity extends FragmentActivity implements Wal

    }

    @Override
    public MyPhotosStarter getMyPhotosStarter() {
        return mDelegate;
    }

    /**
     * Represents a section of the Picker (eg "ThemeBundle", "Clock", etc).
     * There should be a concrete subclass per available section, providing the corresponding