-
Notifications
You must be signed in to change notification settings - Fork 741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/conversations #3313
Feature/conversations #3313
Conversation
Not sure who we can ping to take a look. I'm sure many users would love this feature! I noticed some errors in the build process, maybe you need to fix those? |
Yeah there is a typo: workdir/vector/build/generated/resolved/gplayRelease/values-pt/resolved.xml:36: Error: "radio" is a common misspelling; did you mean "rádio" ? [Typos] But I didn't changed the translations. Can I just change this word or is there some other action required? I found two bugs:
I'll try to fix this this weekend or next week. |
CHANGES.md
Outdated
@@ -259,6 +259,7 @@ Features ✨: | |||
- Spaces beta | |||
|
|||
Improvements 🙌: | |||
- Priority conversations for Android 11+ (#2734) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change on this file is not needed anymore, can you revert please?
@@ -0,0 +1 @@ | |||
Priority conversations for Android 11+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -917,7 +916,7 @@ class NotificationUtils @Inject constructor(private val context: Context, | |||
} | |||
|
|||
// We cannot use NotificationManagerCompat here. | |||
val setting = context.getSystemService<NotificationManager>()!!.currentInterruptionFilter | |||
val setting = context.getSystemService(NotificationManager::class.java)!!.currentInterruptionFilter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary but fixes some linting for me locally should i revert?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the lint issue you are seeing? I do not see it, nor the CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok i will revert this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AquaWolf thanks for the PR. Did you try to fix the 2 issues you've found?
The mute thing didn't appeared anymore. |
because of "shortcut" handling when logging out, there is a method removeAllDynamicShortcuts |
The method Also the CHANGES.md file is not OK. Is it OK for you to rebase the PR so we can have a clean history without any change on this file? |
@@ -917,7 +916,7 @@ class NotificationUtils @Inject constructor(private val context: Context, | |||
} | |||
|
|||
// We cannot use NotificationManagerCompat here. | |||
val setting = context.getSystemService<NotificationManager>()!!.currentInterruptionFilter | |||
val setting = (context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager).currentInterruptionFilter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not fully revert this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get a error while compiling letting it as is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will revert this
26159d0
to
5bfa050
Compare
rebased and force pushed on my remote hope it's now better organized and implemented a function to remove all longlived shortcuts when logging out 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. I have one more remark, sorry I did not see it in the beginning.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { | ||
val openRoomIntent = RoomDetailActivity.shortcutIntent(context, roomId) | ||
|
||
val shortcut = ShortcutInfoCompat.Builder(context, roomId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this code to ShortcutCreator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will handle it. Thanks again for the PR!
89e82b9
to
2223e95
Compare
@dkter According to #1809 (comment) it doesn't support the bubble. This current PR implements it. (From what I can understand) |
@Extarys This PR doesn't implement bubbles (see the top post). It seems like it just replaces removeAllDynamicShortcuts with removeLongLivedShortcuts, and duplicates some of the code that's already in ShortcutCreator in NotificationDrawerManager (albeit not using What seems to be happening now is that shortcuts are sometimes created with the code in ShortcutCreator, and thus have correctly rendered icons, and sometimes are created with the code in NotificationDrawerManager which gives them broken icons. It looks like there's been a major refactoring of the notification code since this PR, but the redundant code still exists. |
Pull Request Checklist
Fixes #2734 partially (no bubbles)
Signed-off-by: Philipp Neumann 3daquawolf@gmail.com