Show an app's latest notification under its name in the drawer list
PRD AD-11, the last buildable row of M4. - FlexeraNotificationPreview keeps the text of the notifications that currently show a dot, fed by Launcher3's NotificationListener on its worker thread, and sets a second, smaller and dimmer line on a drawer row whenever the row's dot state is applied. - It uses what the dots already use: the same notification access and the same filter for which notifications count. Without notification access nothing changes. - PopupDataProvider now refreshes an app's icons on every posted notification, so a notification updated in place brings its new text to the row. - Only rows of the drawer list take the second line (marked with a view tag); search result icons share the "all apps" display type but stay as they were. - New setting under Settings > App drawer: Notification previews, on by default. Checked on the Android 17 emulator (debug build): a test SMS showed under Messages, a second one replaced it while the drawer was open, removing the notification put the plain name back, and the setting switches the line off and on. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
f92276da15
commit
4e48615b5a
9 files changed
+172
-4
No files matched your search
@@ -1413,6 +1413,11 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
setContentDescription(itemInfo.contentDescription);
|
||||
}
|
||||
}
|
||||
// Flexera Launcher: a row in the drawer list shows its app's latest notification
|
||||
// under the app name (PRD AD-11).
|
||||
if (mDisplay == DISPLAY_ALL_APPS) {
|
||||
app.flexera.drawer.FlexeraNotificationPreview.apply(this, itemInfo, mDotInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user