Update passphrase caching notification strategy.

On platforms (API >= 11) that support receiving click events within
a notification, we change the notification format so that users
can "lock" TextSecure with a click.

For all platforms, we change the notification icon in the status
bar from a "lock" to an "unlock," to better reflect the situation.

This is all part of the master plan for eliminating the passphrase
timeout option.
This commit is contained in:
Moxie Marlinspike
2012-09-09 09:18:17 -07:00
parent 312942439d
commit 7a7dba66ad
15 changed files with 107 additions and 4 deletions

View File

@@ -196,7 +196,7 @@
<!-- KeyCachingService -->
<string name="textsecure_passphrase_cached">TextSecure Passphrase Cached</string>
<string name="textsecure_cached">TextSecure Cached</string>
<string name="passphrase_cached">Passphrase Cached</string>
<!-- MessageNotifier -->
<string name="_d_new_messages">(%d) New messages</string>

View File

@@ -11,4 +11,15 @@
<item name="android:backgroundDimEnabled">false</item>
<item name="android:background">@android:color/transparent</item>
</style>
</resources>
<style name="NotificationText">
<item name="android:textColor">?android:attr/textColorPrimary</item>
</style>
<style name="NotificationTitle">
<item name="android:textColor">?android:attr/textColorPrimary</item>
<item name="android:textStyle">bold</item>
</style>
</resources>