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

Commit 3e5a805a authored by Ching-Sung Li's avatar Ching-Sung Li Committed by Ching Sung Li
Browse files

Apply interface change of showViewOnlyPreview()

To support the full preview as home or lock screen.
showViewOnlyPreview() is updated accordingly.

Bug: 157724411
Test: Manual
Change-Id: I006116bd5b22c1c1146aff56d4f4a89cb5bcf996
parent f4e1d4c5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -89,8 +89,9 @@ public class DefaultCustomizationInjector extends BaseWallpaperInjector
            Context context,
            WallpaperInfo wallpaperInfo,
            int mode,
            boolean viewAsHome,
            boolean testingModeEnabled) {
        return PreviewFragment.newInstance(wallpaperInfo, mode, testingModeEnabled);
        return PreviewFragment.newInstance(wallpaperInfo, mode, viewAsHome, testingModeEnabled);
    }

    @Override
+2 −2
Original line number Diff line number Diff line
@@ -357,8 +357,8 @@ public class CustomizationPickerActivity extends FragmentActivity implements Wal
    }

    @Override
    public void showViewOnlyPreview(WallpaperInfo wallpaperInfo) {
        mDelegate.showViewOnlyPreview(wallpaperInfo);
    public void showViewOnlyPreview(WallpaperInfo wallpaperInfo, boolean isViewAsHome) {
        mDelegate.showViewOnlyPreview(wallpaperInfo, isViewAsHome);
    }

    @Override
+7 −5
Original line number Diff line number Diff line
@@ -68,8 +68,10 @@ public class WallpapersInjector extends BaseWallpaperInjector {
            Context context,
            WallpaperInfo wallpaperInfo,
            int mode,
            boolean viewAsHome,
            boolean testingModeEnabled) {
        return ImagePreviewFragment.newInstance(wallpaperInfo, mode, testingModeEnabled);
        return ImagePreviewFragment.newInstance(wallpaperInfo, mode, viewAsHome,
                testingModeEnabled);
    }

    @Override