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

Commit 79b94a47 authored by chihhangchuang's avatar chihhangchuang
Browse files

Cleanup the AppbarFragment usage in PreviewFragment

Cleanup only, no business logic change

- AppbarFragment had a good pattern to set title on toolbar. PreviewFragment won't do it throught accessing activity tool bar.
- AppbarFragment had a good pattern to set bottom action bar, which is widely used within the app, PreviewFragment won't do it by itself.

Test: Manually
Fixes: 160211359
Change-Id: Ie9e390c69e82d02192af0e2bcc5274b9a64d514c
parent 2790d748
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -91,7 +91,8 @@ public class DefaultCustomizationInjector extends BaseWallpaperInjector
            int mode,
            boolean viewAsHome,
            boolean testingModeEnabled) {
        return PreviewFragment.newInstance(wallpaperInfo, mode, viewAsHome, testingModeEnabled);
        return PreviewFragment.newInstance(context, wallpaperInfo, mode, viewAsHome,
                testingModeEnabled);
    }

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