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

Commit 79ddb5be authored by Catherine Liang's avatar Catherine Liang
Browse files

Loading animation for landing page screen preview (2/3)

Adding preview loading animation. Animation is currently turned off
since it is a work in progress. Will follow up with more refinement

Test: manually verified, see comment
Bug: 274443705
Change-Id: I3484eb01a531316246d8b56bbf4dcbf4d4dec265
parent 8a4348ee
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -122,7 +122,8 @@ public final class DefaultCustomizationSections implements CustomizationSections
                        wallpaperInteractor,
                        mThemedIconInteractor,
                        wallpaperManager,
                        isTwoPaneAndSmallWidth)
                        isTwoPaneAndSmallWidth,
                        savedInstanceState)
                        : new PreviewWithThemeSectionController(
                                activity,
                                lifecycleOwner,
@@ -134,7 +135,8 @@ public final class DefaultCustomizationSections implements CustomizationSections
                                wallpaperInteractor,
                                mThemedIconInteractor,
                                wallpaperManager,
                                isTwoPaneAndSmallWidth));
                                isTwoPaneAndSmallWidth,
                                savedInstanceState));

        sectionControllers.add(
                new ConnectedSectionController(
+3 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ package com.android.customization.picker.preview.ui.section
import android.app.WallpaperManager
import android.content.Context
import android.graphics.Rect
import android.os.Bundle
import android.view.TouchDelegate
import android.view.View
import android.view.View.OnAttachStateChangeListener
@@ -72,6 +73,7 @@ class PreviewWithClockCarouselSectionController(
    themedIconInteractor: ThemedIconInteractor,
    wallpaperManager: WallpaperManager,
    private val isTwoPaneAndSmallWidth: Boolean,
    savedInstanceState: Bundle?,
) :
    PreviewWithThemeSectionController(
        activity,
@@ -85,6 +87,7 @@ class PreviewWithClockCarouselSectionController(
        themedIconInteractor,
        wallpaperManager,
        isTwoPaneAndSmallWidth,
        savedInstanceState,
    ) {

    private val viewModel =
+4 −1
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ package com.android.customization.picker.preview.ui.section
import android.app.Activity
import android.app.WallpaperManager
import android.content.Context
import android.os.Bundle
import androidx.lifecycle.LifecycleOwner
import com.android.customization.model.themedicon.domain.interactor.ThemedIconInteractor
import com.android.customization.picker.preview.ui.viewmodel.PreviewWithThemeViewModel
@@ -51,6 +52,7 @@ open class PreviewWithThemeSectionController(
    private val themedIconInteractor: ThemedIconInteractor,
    wallpaperManager: WallpaperManager,
    isTwoPaneAndSmallWidth: Boolean,
    savedInstanceState: Bundle?,
) :
    ScreenPreviewSectionController(
        activity,
@@ -62,7 +64,8 @@ open class PreviewWithThemeSectionController(
        wallpaperPreviewNavigator,
        wallpaperInteractor,
        wallpaperManager,
        isTwoPaneAndSmallWidth
        isTwoPaneAndSmallWidth,
        savedInstanceState,
    ) {
    override fun createScreenPreviewViewModel(context: Context): ScreenPreviewViewModel {
        return PreviewWithThemeViewModel(