Make system database import notification translatable

Also replace "TextSecure" with "Signal" in the notification text.

Closes #5256
// FREEBIE
This commit is contained in:
haffenloher 2016-02-18 01:36:40 +01:00 committed by Moxie Marlinspike
parent 238471b847
commit 25d7931358
2 changed files with 4 additions and 2 deletions

View File

@ -594,6 +594,8 @@
<!-- ApplicationMigrationService --> <!-- ApplicationMigrationService -->
<string name="ApplicationMigrationService_import_in_progress">Import in progress</string> <string name="ApplicationMigrationService_import_in_progress">Import in progress</string>
<string name="ApplicationMigrationService_importing_text_messages">Importing text messages</string> <string name="ApplicationMigrationService_importing_text_messages">Importing text messages</string>
<string name="ApplicationMigrationService_import_complete">Import complete</string>
<string name="ApplicationMigrationService_Signal_system_database_import_is_complete">Signal system database import is complete.</string>
<!-- KeyCachingService --> <!-- KeyCachingService -->
<string name="KeyCachingService_signal_passphrase_cached">Touch to open.</string> <string name="KeyCachingService_signal_passphrase_cached">Touch to open.</string>

View File

@ -188,8 +188,8 @@ public class ApplicationMigrationService extends Service
public void onReceive(Context context, Intent intent) { public void onReceive(Context context, Intent intent) {
NotificationCompat.Builder builder = new NotificationCompat.Builder(context); NotificationCompat.Builder builder = new NotificationCompat.Builder(context);
builder.setSmallIcon(R.drawable.icon_notification); builder.setSmallIcon(R.drawable.icon_notification);
builder.setContentTitle("Import Complete"); builder.setContentTitle(context.getString(R.string.ApplicationMigrationService_import_complete));
builder.setContentText("TextSecure system database import is complete."); builder.setContentText(context.getString(R.string.ApplicationMigrationService_Signal_system_database_import_is_complete));
builder.setContentIntent(PendingIntent.getActivity(context, 0, new Intent(context, ConversationListActivity.class), 0)); builder.setContentIntent(PendingIntent.getActivity(context, 0, new Intent(context, ConversationListActivity.class), 0));
builder.setWhen(System.currentTimeMillis()); builder.setWhen(System.currentTimeMillis());
builder.setDefaults(Notification.DEFAULT_VIBRATE); builder.setDefaults(Notification.DEFAULT_VIBRATE);