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

Commit e9227f21 authored by Michal Brzezinski's avatar Michal Brzezinski Committed by Michał Brzeziński
Browse files

Fixing packages in touchpad tutorial

Moving Composables to ui.composable package and view model to ui.viewmodel

Bug: 309928033
Test: code compiles
Flag: com.android.systemui.shared.new_touchpad_gestures_tutorial
Change-Id: If5a3af81f1c07ab19b13c1301c688936f2abbe29
parent 1425d2c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.systemui.touchpad.tutorial.ui.view
package com.android.systemui.touchpad.tutorial.ui.composable

import androidx.activity.compose.BackHandler
import androidx.annotation.StringRes
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.systemui.touchpad.tutorial.ui.view
package com.android.systemui.touchpad.tutorial.ui.composable

import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.systemui.touchpad.tutorial.ui.view
package com.android.systemui.touchpad.tutorial.ui.composable

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
+6 −4
Original line number Diff line number Diff line
@@ -27,10 +27,12 @@ import androidx.compose.runtime.getValue
import androidx.lifecycle.Lifecycle.State.STARTED
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.android.compose.theme.PlatformTheme
import com.android.systemui.touchpad.tutorial.ui.Screen.BACK_GESTURE
import com.android.systemui.touchpad.tutorial.ui.Screen.HOME_GESTURE
import com.android.systemui.touchpad.tutorial.ui.Screen.TUTORIAL_SELECTION
import com.android.systemui.touchpad.tutorial.ui.TouchpadTutorialViewModel
import com.android.systemui.touchpad.tutorial.ui.composable.BackGestureTutorialScreen
import com.android.systemui.touchpad.tutorial.ui.composable.TutorialSelectionScreen
import com.android.systemui.touchpad.tutorial.ui.viewmodel.Screen.BACK_GESTURE
import com.android.systemui.touchpad.tutorial.ui.viewmodel.Screen.HOME_GESTURE
import com.android.systemui.touchpad.tutorial.ui.viewmodel.Screen.TUTORIAL_SELECTION
import com.android.systemui.touchpad.tutorial.ui.viewmodel.TouchpadTutorialViewModel
import javax.inject.Inject

class TouchpadTutorialActivity
+2 −2
Original line number Diff line number Diff line
@@ -14,14 +14,14 @@
 * limitations under the License.
 */

package com.android.systemui.touchpad.tutorial.ui
package com.android.systemui.touchpad.tutorial.ui.viewmodel

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.android.systemui.touchpad.tutorial.domain.interactor.TouchpadGesturesInteractor
import javax.inject.Inject
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import javax.inject.Inject

class TouchpadTutorialViewModel(private val gesturesInteractor: TouchpadGesturesInteractor) :
    ViewModel() {
Loading