Replaces hardcoded strings with resources.
This commit is contained in:
parent
b4d81d1667
commit
ef3b7d0727
2 changed files with 4 additions and 3 deletions
|
@ -2113,4 +2113,5 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A
|
|||
<string name="update_every">Update every</string>
|
||||
<string name="only_download_over_wifi">Only download over WiFi</string>
|
||||
<string name="live_update">Live update</string>
|
||||
<string name="update_now">Update now</string>
|
||||
</resources>
|
|
@ -28,9 +28,9 @@ public class SettingsDialogFragment extends DialogFragment {
|
|||
.inflate(R.layout.dialog_live_updates_item_settings, null);
|
||||
final LocalIndexInfo localIndexInfo = getArguments().getParcelable(LOCAL_INDEX);
|
||||
builder.setView(view)
|
||||
.setPositiveButton("SAVE", null)
|
||||
.setNegativeButton("CANCEL", null)
|
||||
.setNeutralButton("UPDATE NOW", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(R.string.shared_string_save, null)
|
||||
.setNegativeButton(R.string.shared_string_cancel, null)
|
||||
.setNeutralButton(R.string.update_now, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
getLiveUpdatesFragment().runLiveUpdate(localIndexInfo);
|
||||
|
|
Loading…
Reference in a new issue