Loading packages/SystemUI/src/com/android/systemui/education/ui/view/ContextualEduUiCoordinator.kt +10 −4 Original line number Diff line number Diff line Loading @@ -34,6 +34,8 @@ import com.android.systemui.education.ui.viewmodel.ContextualEduNotificationView import com.android.systemui.education.ui.viewmodel.ContextualEduToastViewModel import com.android.systemui.education.ui.viewmodel.ContextualEduViewModel import com.android.systemui.inputdevice.tutorial.ui.view.KeyboardTouchpadTutorialActivity import com.android.systemui.inputdevice.tutorial.ui.view.KeyboardTouchpadTutorialActivity.Companion.INTENT_TUTORIAL_ENTRY_POINT_CONTEXTUAL_EDU import com.android.systemui.inputdevice.tutorial.ui.view.KeyboardTouchpadTutorialActivity.Companion.INTENT_TUTORIAL_ENTRY_POINT_KEY import com.android.systemui.res.R import javax.inject.Inject import kotlinx.coroutines.CoroutineScope Loading Loading @@ -99,7 +101,7 @@ constructor( CHANNEL_ID, context.getString(com.android.internal.R.string.android_system_label), // Make it as silent notification NotificationManager.IMPORTANCE_LOW NotificationManager.IMPORTANCE_LOW, ) notificationManager.createNotificationChannel(channel) } Loading @@ -114,7 +116,7 @@ constructor( val extras = Bundle() extras.putString( Notification.EXTRA_SUBSTITUTE_APP_NAME, context.getString(com.android.internal.R.string.android_system_label) context.getString(com.android.internal.R.string.android_system_label), ) val notification = Loading @@ -131,7 +133,7 @@ constructor( TAG, NOTIFICATION_ID, notification, UserHandle.of(model.userId) UserHandle.of(model.userId), ) } Loading @@ -140,12 +142,16 @@ constructor( Intent(context, KeyboardTouchpadTutorialActivity::class.java).apply { addCategory(Intent.CATEGORY_DEFAULT) flags = Intent.FLAG_ACTIVITY_NEW_TASK putExtra( INTENT_TUTORIAL_ENTRY_POINT_KEY, INTENT_TUTORIAL_ENTRY_POINT_CONTEXTUAL_EDU, ) } return PendingIntent.getActivity( context, /* requestCode= */ 0, intent, PendingIntent.FLAG_IMMUTABLE PendingIntent.FLAG_IMMUTABLE, ) } } Loading
packages/SystemUI/src/com/android/systemui/education/ui/view/ContextualEduUiCoordinator.kt +10 −4 Original line number Diff line number Diff line Loading @@ -34,6 +34,8 @@ import com.android.systemui.education.ui.viewmodel.ContextualEduNotificationView import com.android.systemui.education.ui.viewmodel.ContextualEduToastViewModel import com.android.systemui.education.ui.viewmodel.ContextualEduViewModel import com.android.systemui.inputdevice.tutorial.ui.view.KeyboardTouchpadTutorialActivity import com.android.systemui.inputdevice.tutorial.ui.view.KeyboardTouchpadTutorialActivity.Companion.INTENT_TUTORIAL_ENTRY_POINT_CONTEXTUAL_EDU import com.android.systemui.inputdevice.tutorial.ui.view.KeyboardTouchpadTutorialActivity.Companion.INTENT_TUTORIAL_ENTRY_POINT_KEY import com.android.systemui.res.R import javax.inject.Inject import kotlinx.coroutines.CoroutineScope Loading Loading @@ -99,7 +101,7 @@ constructor( CHANNEL_ID, context.getString(com.android.internal.R.string.android_system_label), // Make it as silent notification NotificationManager.IMPORTANCE_LOW NotificationManager.IMPORTANCE_LOW, ) notificationManager.createNotificationChannel(channel) } Loading @@ -114,7 +116,7 @@ constructor( val extras = Bundle() extras.putString( Notification.EXTRA_SUBSTITUTE_APP_NAME, context.getString(com.android.internal.R.string.android_system_label) context.getString(com.android.internal.R.string.android_system_label), ) val notification = Loading @@ -131,7 +133,7 @@ constructor( TAG, NOTIFICATION_ID, notification, UserHandle.of(model.userId) UserHandle.of(model.userId), ) } Loading @@ -140,12 +142,16 @@ constructor( Intent(context, KeyboardTouchpadTutorialActivity::class.java).apply { addCategory(Intent.CATEGORY_DEFAULT) flags = Intent.FLAG_ACTIVITY_NEW_TASK putExtra( INTENT_TUTORIAL_ENTRY_POINT_KEY, INTENT_TUTORIAL_ENTRY_POINT_CONTEXTUAL_EDU, ) } return PendingIntent.getActivity( context, /* requestCode= */ 0, intent, PendingIntent.FLAG_IMMUTABLE PendingIntent.FLAG_IMMUTABLE, ) } }