-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Fix for issue #354, add per-contact notifications #366
Conversation
At a first glance, some high level comments:
The style for this pull is currently pretty diverse. In particular, indents should be two spaces, no tabs anywhere, no trailing whitespace.
|
It appears that you populate the '0' row with some defaults on an upgrade, but that doesn't do anything for a fresh install. E/AndroidRuntime( 2763): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.thoughtcrime.securesms/org.thoughtcrime.securesms.ConfigNotificationActivity}: java.lang.IllegalArgumentException: Invalid lookup id: 0 |
When using the contact selector: E/AndroidRuntime( 2978): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.thoughtcrime.securesms/org.thoughtcrime.securesms.ConfigNotificationActivity}: java.lang.UnsupportedOperationException: Unknown uri: content://org.thoughtcrime.notificationprovider.securesms/contacts/-1 |
@@ -220,6 +233,8 @@ | |||
|
|||
<provider android:name=".providers.PartProvider" | |||
android:authorities="org.thoughtcrime.provider.securesms" /> | |||
<provider android:name=".providers.NotificationProvider" | |||
android:authorities="org.thoughtcrime.notificationprovider.securesms" /> |
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.
Can you explain why a provider is necessary? It doesn't seem as if this is information any other app on the system would need to access.
Please update all string names to be a tuple of their file name and english value, unless absurdly long. So for instance, "contact_customization_add_hint" should be "config_contacts_fragment__add_edit_contact_notifications" |
android:background="?conversation_background"> | ||
|
||
<AutoCompleteTextView | ||
android:text="" |
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.
Empty strings won't build in AOSP, which will cause problems with Cyanogen embedding. Please just leave the property out if empty.
Thanks for the pull request, I think this will be a great feature. |
Is there a beta when I can test this feature? |
@ash359 there is no beta versions of TextSecure. You can checkout the repo from @doozan: |
@meskio compile? HuH? I know how to flash things. |
@ash359 Yes, I guess you'll have to wait until it gets merged. |
Is anyone doing something on this pull request? |
@Hellmy Yes I think it still has a little ways to go. Needs to be rebased as well. |
Thank you @moxie0 for the quick answer. |
@Hellmy I'd recommend just forking my directory and submitting your own pull request as I have no interest in working on Text Secure any more. I did some rebasing and refactoring work already in pull requests 558, 564 and 567 which were all ignored. |
@doozan rebasing is a normal step. Please don't give up! |
There are still some outstanding comments here, so we're going to close this for now. For future reference I think the outstanding work we're looking for is to manage the normal notification settings through the preferences. |
This adds ability to customize notifications on a per-contact basis and adds some additional notification options.
A large part of this code is borrowed from the excellent SMSPopup app, but any bugs are entirely mine.