1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-22 04:50:08 +02:00

fix DebugActivity, was broken since we translated it :/

This commit is contained in:
Andreas Shimokawa 2015-05-13 23:18:54 +02:00
parent d2bcccaeef
commit 80eb386dd8

View File

@ -50,8 +50,8 @@ public class DebugActivity extends Activity {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
Intent startIntent = new Intent(DebugActivity.this, BluetoothCommunicationService.class); Intent startIntent = new Intent(DebugActivity.this, BluetoothCommunicationService.class);
startIntent.setAction(BluetoothCommunicationService.ACTION_NOTIFICATION_GENERIC); startIntent.setAction(BluetoothCommunicationService.ACTION_NOTIFICATION_SMS);
startIntent.putExtra("notification_title", R.string.app_name); startIntent.putExtra("notification_sender", getResources().getText(R.string.app_name));
startIntent.putExtra("notification_body", editContent.getText().toString()); startIntent.putExtra("notification_body", editContent.getText().toString());
startService(startIntent); startService(startIntent);
} }
@ -62,8 +62,8 @@ public class DebugActivity extends Activity {
public void onClick(View v) { public void onClick(View v) {
Intent startIntent = new Intent(DebugActivity.this, BluetoothCommunicationService.class); Intent startIntent = new Intent(DebugActivity.this, BluetoothCommunicationService.class);
startIntent.setAction(BluetoothCommunicationService.ACTION_NOTIFICATION_EMAIL); startIntent.setAction(BluetoothCommunicationService.ACTION_NOTIFICATION_EMAIL);
startIntent.putExtra("notification_sender", R.string.app_name); startIntent.putExtra("notification_sender", getResources().getText(R.string.app_name));
startIntent.putExtra("notification_subject", R.string.test); startIntent.putExtra("notification_subject", getResources().getText(R.string.test));
startIntent.putExtra("notification_body", editContent.getText().toString()); startIntent.putExtra("notification_body", editContent.getText().toString());
startService(startIntent); startService(startIntent);
} }