Loading packages/SystemUI/AndroidManifest.xml +0 −2 Original line number Diff line number Diff line Loading @@ -1005,7 +1005,6 @@ android:name=".notetask.shortcut.LaunchNoteTaskActivity" android:exported="true" android:excludeFromRecents="true" android:resizeableActivity="false" android:theme="@android:style/Theme.NoDisplay" > <intent-filter> Loading @@ -1018,7 +1017,6 @@ android:name=".notetask.LaunchNotesRoleSettingsTrampolineActivity" android:exported="true" android:excludeFromRecents="true" android:resizeableActivity="false" android:theme="@android:style/Theme.NoDisplay" > <intent-filter> <action android:name="com.android.systemui.action.MANAGE_NOTES_ROLE_FROM_QUICK_AFFORDANCE" /> Loading packages/SystemUI/src/com/android/systemui/notetask/NoteTaskController.kt +1 −2 Original line number Diff line number Diff line Loading @@ -46,7 +46,6 @@ import com.android.systemui.notetask.NoteTaskRoleManagerExt.getDefaultRoleHolder import com.android.systemui.notetask.shortcut.CreateNoteTaskShortcutActivity import com.android.systemui.settings.UserTracker import com.android.systemui.shared.system.ActivityManagerKt.isInForeground import com.android.systemui.util.kotlin.getOrNull import com.android.systemui.util.settings.SecureSettings import com.android.wm.shell.bubbles.Bubble import com.android.wm.shell.bubbles.Bubbles.BubbleExpandListener Loading Loading @@ -219,7 +218,7 @@ constructor( debugLog { "onShowNoteTask - opened as app bubble: $info" } } is NoteTaskLaunchMode.Activity -> { if (activityManager.isInForeground(info.packageName)) { if (info.isKeyguardLocked && activityManager.isInForeground(info.packageName)) { // Force note task into background by calling home. val intent = createHomeIntent() context.startActivityAsUser(intent, user) Loading packages/SystemUI/src/com/android/systemui/notetask/NoteTaskEntryPoint.kt +4 −2 Original line number Diff line number Diff line Loading @@ -25,12 +25,14 @@ import com.android.systemui.screenshot.appclips.AppClipsTrampolineActivity * An entry point represents where the note task has ben called from. In rare cases, it may * represent a "re-entry" (i.e., [APP_CLIPS]). */ enum class NoteTaskEntryPoint { enum class NoteTaskEntryPoint { /** @see [LaunchNoteTaskActivity] */ WIDGET_PICKER_SHORTCUT, /** @see [LaunchNoteTaskActivity] */ WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE, /** @see [NoteTaskQuickAffordanceConfig] */ QUICK_AFFORDANCE, Loading packages/SystemUI/src/com/android/systemui/notetask/NoteTaskEventLogger.kt +31 −24 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ import com.android.systemui.notetask.NoteTaskEntryPoint.KEYBOARD_SHORTCUT import com.android.systemui.notetask.NoteTaskEntryPoint.QUICK_AFFORDANCE import com.android.systemui.notetask.NoteTaskEntryPoint.TAIL_BUTTON import com.android.systemui.notetask.NoteTaskEntryPoint.WIDGET_PICKER_SHORTCUT import com.android.systemui.notetask.NoteTaskEntryPoint.WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE import com.android.systemui.notetask.NoteTaskEventLogger.NoteTaskUiEvent import com.android.systemui.notetask.NoteTaskEventLogger.NoteTaskUiEvent.NOTE_OPENED_VIA_KEYGUARD_QUICK_AFFORDANCE import com.android.systemui.notetask.NoteTaskEventLogger.NoteTaskUiEvent.NOTE_OPENED_VIA_SHORTCUT import com.android.systemui.notetask.NoteTaskEventLogger.NoteTaskUiEvent.NOTE_OPENED_VIA_STYLUS_TAIL_BUTTON Loading Loading @@ -49,10 +51,13 @@ class NoteTaskEventLogger @Inject constructor(private val uiEventLogger: UiEvent NOTE_OPENED_VIA_STYLUS_TAIL_BUTTON } } WIDGET_PICKER_SHORTCUT -> NOTE_OPENED_VIA_SHORTCUT WIDGET_PICKER_SHORTCUT, WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE -> NOTE_OPENED_VIA_SHORTCUT QUICK_AFFORDANCE -> NOTE_OPENED_VIA_KEYGUARD_QUICK_AFFORDANCE APP_CLIPS -> return KEYBOARD_SHORTCUT -> return APP_CLIPS, KEYBOARD_SHORTCUT, null -> return } uiEventLogger.log(event, info.uid, info.packageName) Loading @@ -69,10 +74,12 @@ class NoteTaskEventLogger @Inject constructor(private val uiEventLogger: UiEvent NoteTaskUiEvent.NOTE_CLOSED_VIA_STYLUS_TAIL_BUTTON } } WIDGET_PICKER_SHORTCUT -> return QUICK_AFFORDANCE -> return APP_CLIPS -> return KEYBOARD_SHORTCUT -> return WIDGET_PICKER_SHORTCUT, WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE, QUICK_AFFORDANCE, APP_CLIPS, KEYBOARD_SHORTCUT, null -> return } uiEventLogger.log(event, info.uid, info.packageName) Loading packages/SystemUI/src/com/android/systemui/notetask/NoteTaskInfo.kt +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.systemui.notetask import android.os.UserHandle import com.android.systemui.notetask.NoteTaskEntryPoint.WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE /** Contextual information required to launch a Note Task by [NoteTaskController]. */ data class NoteTaskInfo( Loading @@ -27,7 +28,7 @@ data class NoteTaskInfo( ) { val launchMode: NoteTaskLaunchMode = if (isKeyguardLocked) { if (isKeyguardLocked || entryPoint == WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE) { NoteTaskLaunchMode.Activity } else { NoteTaskLaunchMode.AppBubble Loading Loading
packages/SystemUI/AndroidManifest.xml +0 −2 Original line number Diff line number Diff line Loading @@ -1005,7 +1005,6 @@ android:name=".notetask.shortcut.LaunchNoteTaskActivity" android:exported="true" android:excludeFromRecents="true" android:resizeableActivity="false" android:theme="@android:style/Theme.NoDisplay" > <intent-filter> Loading @@ -1018,7 +1017,6 @@ android:name=".notetask.LaunchNotesRoleSettingsTrampolineActivity" android:exported="true" android:excludeFromRecents="true" android:resizeableActivity="false" android:theme="@android:style/Theme.NoDisplay" > <intent-filter> <action android:name="com.android.systemui.action.MANAGE_NOTES_ROLE_FROM_QUICK_AFFORDANCE" /> Loading
packages/SystemUI/src/com/android/systemui/notetask/NoteTaskController.kt +1 −2 Original line number Diff line number Diff line Loading @@ -46,7 +46,6 @@ import com.android.systemui.notetask.NoteTaskRoleManagerExt.getDefaultRoleHolder import com.android.systemui.notetask.shortcut.CreateNoteTaskShortcutActivity import com.android.systemui.settings.UserTracker import com.android.systemui.shared.system.ActivityManagerKt.isInForeground import com.android.systemui.util.kotlin.getOrNull import com.android.systemui.util.settings.SecureSettings import com.android.wm.shell.bubbles.Bubble import com.android.wm.shell.bubbles.Bubbles.BubbleExpandListener Loading Loading @@ -219,7 +218,7 @@ constructor( debugLog { "onShowNoteTask - opened as app bubble: $info" } } is NoteTaskLaunchMode.Activity -> { if (activityManager.isInForeground(info.packageName)) { if (info.isKeyguardLocked && activityManager.isInForeground(info.packageName)) { // Force note task into background by calling home. val intent = createHomeIntent() context.startActivityAsUser(intent, user) Loading
packages/SystemUI/src/com/android/systemui/notetask/NoteTaskEntryPoint.kt +4 −2 Original line number Diff line number Diff line Loading @@ -25,12 +25,14 @@ import com.android.systemui.screenshot.appclips.AppClipsTrampolineActivity * An entry point represents where the note task has ben called from. In rare cases, it may * represent a "re-entry" (i.e., [APP_CLIPS]). */ enum class NoteTaskEntryPoint { enum class NoteTaskEntryPoint { /** @see [LaunchNoteTaskActivity] */ WIDGET_PICKER_SHORTCUT, /** @see [LaunchNoteTaskActivity] */ WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE, /** @see [NoteTaskQuickAffordanceConfig] */ QUICK_AFFORDANCE, Loading
packages/SystemUI/src/com/android/systemui/notetask/NoteTaskEventLogger.kt +31 −24 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ import com.android.systemui.notetask.NoteTaskEntryPoint.KEYBOARD_SHORTCUT import com.android.systemui.notetask.NoteTaskEntryPoint.QUICK_AFFORDANCE import com.android.systemui.notetask.NoteTaskEntryPoint.TAIL_BUTTON import com.android.systemui.notetask.NoteTaskEntryPoint.WIDGET_PICKER_SHORTCUT import com.android.systemui.notetask.NoteTaskEntryPoint.WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE import com.android.systemui.notetask.NoteTaskEventLogger.NoteTaskUiEvent import com.android.systemui.notetask.NoteTaskEventLogger.NoteTaskUiEvent.NOTE_OPENED_VIA_KEYGUARD_QUICK_AFFORDANCE import com.android.systemui.notetask.NoteTaskEventLogger.NoteTaskUiEvent.NOTE_OPENED_VIA_SHORTCUT import com.android.systemui.notetask.NoteTaskEventLogger.NoteTaskUiEvent.NOTE_OPENED_VIA_STYLUS_TAIL_BUTTON Loading Loading @@ -49,10 +51,13 @@ class NoteTaskEventLogger @Inject constructor(private val uiEventLogger: UiEvent NOTE_OPENED_VIA_STYLUS_TAIL_BUTTON } } WIDGET_PICKER_SHORTCUT -> NOTE_OPENED_VIA_SHORTCUT WIDGET_PICKER_SHORTCUT, WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE -> NOTE_OPENED_VIA_SHORTCUT QUICK_AFFORDANCE -> NOTE_OPENED_VIA_KEYGUARD_QUICK_AFFORDANCE APP_CLIPS -> return KEYBOARD_SHORTCUT -> return APP_CLIPS, KEYBOARD_SHORTCUT, null -> return } uiEventLogger.log(event, info.uid, info.packageName) Loading @@ -69,10 +74,12 @@ class NoteTaskEventLogger @Inject constructor(private val uiEventLogger: UiEvent NoteTaskUiEvent.NOTE_CLOSED_VIA_STYLUS_TAIL_BUTTON } } WIDGET_PICKER_SHORTCUT -> return QUICK_AFFORDANCE -> return APP_CLIPS -> return KEYBOARD_SHORTCUT -> return WIDGET_PICKER_SHORTCUT, WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE, QUICK_AFFORDANCE, APP_CLIPS, KEYBOARD_SHORTCUT, null -> return } uiEventLogger.log(event, info.uid, info.packageName) Loading
packages/SystemUI/src/com/android/systemui/notetask/NoteTaskInfo.kt +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.systemui.notetask import android.os.UserHandle import com.android.systemui.notetask.NoteTaskEntryPoint.WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE /** Contextual information required to launch a Note Task by [NoteTaskController]. */ data class NoteTaskInfo( Loading @@ -27,7 +28,7 @@ data class NoteTaskInfo( ) { val launchMode: NoteTaskLaunchMode = if (isKeyguardLocked) { if (isKeyguardLocked || entryPoint == WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE) { NoteTaskLaunchMode.Activity } else { NoteTaskLaunchMode.AppBubble Loading