This repository was archived by the owner on Aug 19, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
src/edu/cmu/cylab/starslinger Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9595 android:title="@string/menu_auto_attach_retrieval" />
9696 -->
9797 <Preference
98- android : key =" PushRegistrationIdDirect "
98+ android : key =" PushRegistrationIdLinkedDisplay "
9999 android : persistent =" false"
100100 android : title =" @string/label_PushTokenID" />
101101 <Preference
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ public static final class pref {
121121 public static final String PENDING_GETMSG_BACKOFF_TIMEOUT = "PendingGetMessageBackoff" ;
122122 public static final String PUSH_BACKOFF = "PushBackoff" ;
123123 public static final String PUSH_REG_ID_LINKED = "PushRegistrationIdLinked" ;
124+ public static final String PUSH_REG_ID_LINKED_DISPLAY = "PushRegistrationIdLinkedDisplay" ;
124125 public static final String PUSH_REG_ID_POSTED = "PushRegistrationIdPosted" ;
125126 public static final String PUSHREG_BACKOFF_TIMEOUT = "pushRegistrationBackoff" ;
126127 public static final String REMIND_BACKUP_DELAY = "RemindBackupDelay" ;
@@ -420,7 +421,11 @@ public static void setPushRegistrationIdPosted(boolean registrationIdPosted) {
420421
421422 public static String getPushRegistrationId () {
422423 // add version to get updated push registration every new release
423- return getString (pref .PUSH_REG_ID_LINKED + SafeSlingerConfig .getVersionName (), null , false );
424+ final String registrationId = getString (
425+ pref .PUSH_REG_ID_LINKED + SafeSlingerConfig .getVersionName (), null , false );
426+ // set a simple display to allow preferences to view an accurate id
427+ setString (pref .PUSH_REG_ID_LINKED_DISPLAY , registrationId , false );
428+ return registrationId ;
424429 }
425430
426431 public static void setPushRegistrationId (String registrationId ) {
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ private void setPrefs() {
140140 mRemindBackupDelay = (CheckBoxPreference ) findPreference (SafeSlingerPrefs .pref .REMIND_BACKUP_DELAY );
141141 mPassPhraseCacheTtl = (IntegerListPreference ) findPreference (SafeSlingerPrefs .pref .PASSPHRASE_CACHE_TTL );
142142 mContactName = (EditTextPreference ) findPreference (SafeSlingerPrefs .pref .CONTACT_NAME );
143- mContactPushToken = findPreference (SafeSlingerPrefs .pref .PUSH_REG_ID_LINKED );
143+ mContactPushToken = findPreference (SafeSlingerPrefs .pref .PUSH_REG_ID_LINKED_DISPLAY );
144144 mContactPubKeyId = findPreference (SafeSlingerPrefs .pref .KEYID_STRING );
145145 mBackupRequestDate = findPreference (SafeSlingerPrefs .pref .BACKUP_REQUEST_DATE );
146146 mBackupCompleteDate = findPreference (SafeSlingerPrefs .pref .BACKUP_COMPLETE_DATE );
You can’t perform that action at this time.
0 commit comments