summaryrefslogtreecommitdiffstats
path: root/fmapp2/src/com/caf/fmradio/FMRadio.java
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@gmail.com>2014-02-16 15:35:59 +0200
committerMichael Bestas <mikeioannina@gmail.com>2015-02-01 01:29:09 +0200
commit549a15062927e1191fadc82d56114464976eadc2 (patch)
tree90fa2fc501ed72e912b68185eee7a5ee17165766 /fmapp2/src/com/caf/fmradio/FMRadio.java
parent378d46f2b3470180daa2de652cfef1e2d818c648 (diff)
downloadandroid_hardware_qcom_fm-549a15062927e1191fadc82d56114464976eadc2.tar.gz
android_hardware_qcom_fm-549a15062927e1191fadc82d56114464976eadc2.tar.bz2
android_hardware_qcom_fm-549a15062927e1191fadc82d56114464976eadc2.zip
FM: Cleanup resources
* Remove unused layouts/drawables * Remove unused strings * Remove CAF chinese translations * Improve strings * Move debug strings/arrays to debug_strings.xml/debug_arrays.xml * Move transmitter strings to transmit_strings.xml Change-Id: I5b391b459aefa75a6c3edbc525d471a3bcefb2be
Diffstat (limited to 'fmapp2/src/com/caf/fmradio/FMRadio.java')
-rw-r--r--fmapp2/src/com/caf/fmradio/FMRadio.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadio.java b/fmapp2/src/com/caf/fmradio/FMRadio.java
index 8e9375f..4b9573c 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadio.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadio.java
@@ -629,14 +629,12 @@ public class FMRadio extends Activity
item = menu.add(0, MENU_RECORD_START, 0, R.string.menu_record_start)
.setIcon(R.drawable.ic_menu_record);
if (item != null) {
- item.setVisible(true);
- item.setEnabled((!recording) && radioOn);
+ item.setVisible((!recording) && radioOn);
}
item = menu.add(0, MENU_RECORD_STOP, 0, R.string.menu_record_stop)
.setIcon(R.drawable.ic_menu_record);
if (item != null) {
- item.setVisible(true);
- item.setEnabled(recording && radioOn);
+ item.setVisible(recording && radioOn);
}
}
/* Settings can be active */
@@ -1306,7 +1304,7 @@ public class FMRadio extends Activity
R.layout.alert_dialog_text_entry, null);
dlgBuilder.setTitle(R.string.dialog_presetlist_rename_title);
dlgBuilder.setView(textEntryView);
- dlgBuilder.setPositiveButton(R.string.alert_dialog_ok,
+ dlgBuilder.setPositiveButton(android.R.string.ok,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
//int curList = FmSharedPreferences.getCurrentListIndex();
@@ -1325,7 +1323,7 @@ public class FMRadio extends Activity
removeDialog(DIALOG_PRESET_RENAME);
}
});
- dlgBuilder.setNegativeButton(R.string.alert_dialog_cancel,
+ dlgBuilder.setNegativeButton(android.R.string.cancel,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
removeDialog(DIALOG_PRESET_RENAME);
@@ -1339,7 +1337,7 @@ public class FMRadio extends Activity
dlgBuilder.setIcon(R.drawable.alert_dialog_icon)
.setTitle(R.string.fm_command_timeout_title);
dlgBuilder.setMessage(R.string.fm_tune_timeout_msg);
- dlgBuilder.setPositiveButton(R.string.alert_dialog_ok,
+ dlgBuilder.setPositiveButton(android.R.string.ok,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int whichButton) {
@@ -1358,7 +1356,7 @@ public class FMRadio extends Activity
.setTitle(R.string.fm_command_failed_title);
dlgBuilder.setMessage(R.string.fm_cmd_failed_msg);
- dlgBuilder.setPositiveButton(R.string.alert_dialog_ok,
+ dlgBuilder.setPositiveButton(android.R.string.ok,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int whichButton) {
@@ -1376,7 +1374,7 @@ public class FMRadio extends Activity
.setTitle(R.string.fm_command_failed_title);
dlgBuilder.setMessage(R.string.fm_cmd_failed_msg_hdmi);
- dlgBuilder.setPositiveButton(R.string.alert_dialog_ok,
+ dlgBuilder.setPositiveButton(android.R.string.ok,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int whichButton) {
@@ -1394,7 +1392,7 @@ public class FMRadio extends Activity
.setTitle(R.string.fm_command_failed_title);
dlgBuilder.setMessage(R.string.fm_cmd_failed_call_on);
- dlgBuilder.setPositiveButton(R.string.alert_dialog_ok,
+ dlgBuilder.setPositiveButton(android.R.string.ok,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int whichButton) {