From 80eb386dd8696fddb18fbf959301c71c26c1c97b Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Wed, 13 May 2015 23:18:54 +0200 Subject: [PATCH] fix DebugActivity, was broken since we translated it :/ --- .../freeyourgadget/gadgetbridge/DebugActivity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/DebugActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/DebugActivity.java index 779dbb5d5..398a8df35 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/DebugActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/DebugActivity.java @@ -50,8 +50,8 @@ public class DebugActivity extends Activity { @Override public void onClick(View v) { Intent startIntent = new Intent(DebugActivity.this, BluetoothCommunicationService.class); - startIntent.setAction(BluetoothCommunicationService.ACTION_NOTIFICATION_GENERIC); - startIntent.putExtra("notification_title", R.string.app_name); + startIntent.setAction(BluetoothCommunicationService.ACTION_NOTIFICATION_SMS); + startIntent.putExtra("notification_sender", getResources().getText(R.string.app_name)); startIntent.putExtra("notification_body", editContent.getText().toString()); startService(startIntent); } @@ -62,8 +62,8 @@ public class DebugActivity extends Activity { public void onClick(View v) { Intent startIntent = new Intent(DebugActivity.this, BluetoothCommunicationService.class); startIntent.setAction(BluetoothCommunicationService.ACTION_NOTIFICATION_EMAIL); - startIntent.putExtra("notification_sender", R.string.app_name); - startIntent.putExtra("notification_subject", R.string.test); + startIntent.putExtra("notification_sender", getResources().getText(R.string.app_name)); + startIntent.putExtra("notification_subject", getResources().getText(R.string.test)); startIntent.putExtra("notification_body", editContent.getText().toString()); startService(startIntent); }