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

Commit 3889e81e authored by George Lin's avatar George Lin
Browse files

Remove PreviewFragment (2/3)

Test: Made sure build success
Bug: 290833019
Change-Id: Ie3f30bac5339876bba83f4594c9384867b35dda0
parent 8be8503e
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -81,9 +81,9 @@ import com.android.wallpaper.module.FragmentFactory
import com.android.wallpaper.module.UserEventLogger
import com.android.wallpaper.module.WallpaperPicker2Injector
import com.android.wallpaper.picker.CustomizationPickerActivity
import com.android.wallpaper.picker.ImagePreviewFragment
import com.android.wallpaper.picker.LivePreviewFragment
import com.android.wallpaper.picker.PreviewFragment
import com.android.wallpaper.picker.ImagePreviewFragment2
import com.android.wallpaper.picker.LivePreviewFragment2
import com.android.wallpaper.picker.PreviewFragment2
import com.android.wallpaper.picker.customization.data.content.WallpaperClientImpl
import com.android.wallpaper.picker.customization.data.repository.WallpaperRepository
import com.android.wallpaper.picker.customization.domain.interactor.WallpaperInteractor
@@ -182,16 +182,16 @@ internal constructor(
        testingModeEnabled: Boolean,
        isAssetIdPresent: Boolean
    ): Fragment {
        return if (wallpaperInfo is LiveWallpaperInfo) LivePreviewFragment()
        return if (wallpaperInfo is LiveWallpaperInfo) LivePreviewFragment2()
        else
            ImagePreviewFragment().apply {
            ImagePreviewFragment2().apply {
                arguments =
                    Bundle().apply {
                        putParcelable(PreviewFragment.ARG_WALLPAPER, wallpaperInfo)
                        putInt(PreviewFragment.ARG_PREVIEW_MODE, mode)
                        putBoolean(PreviewFragment.ARG_VIEW_AS_HOME, viewAsHome)
                        putBoolean(PreviewFragment.ARG_FULL_SCREEN, viewFullScreen)
                        putBoolean(PreviewFragment.ARG_TESTING_MODE_ENABLED, testingModeEnabled)
                        putParcelable(PreviewFragment2.ARG_WALLPAPER, wallpaperInfo)
                        putInt(PreviewFragment2.ARG_PREVIEW_MODE, mode)
                        putBoolean(PreviewFragment2.ARG_VIEW_AS_HOME, viewAsHome)
                        putBoolean(PreviewFragment2.ARG_FULL_SCREEN, viewFullScreen)
                        putBoolean(PreviewFragment2.ARG_TESTING_MODE_ENABLED, testingModeEnabled)
                    }
            }
    }