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); }