move "World" string to resource

This commit is contained in:
Nathan Freitas 2016-01-07 01:06:43 -05:00
parent eaf49da89a
commit 52acf68ed4
2 changed files with 3 additions and 1 deletions

View File

@ -334,4 +334,6 @@
<string name="standard_browser">Standard Browser</string> <string name="standard_browser">Standard Browser</string>
<string name="note_only_standard_tor_bridges_work_on_intel_x86_atom_devices">NOTE: Only standard Tor bridges work on Intel X86/ATOM devices</string> <string name="note_only_standard_tor_bridges_work_on_intel_x86_atom_devices">NOTE: Only standard Tor bridges work on Intel X86/ATOM devices</string>
<string name="vpn_default_world">World</string>
</resources> </resources>

View File

@ -312,7 +312,7 @@ public class OrbotMainActivity extends Activity
int selIdx = -1; int selIdx = -1;
ArrayList<String> cList = new ArrayList<String>(); ArrayList<String> cList = new ArrayList<String>();
cList.add(0, "WORLD"); cList.add(0, getString(R.string.vpn_default_world));
for (int i = 0; i < TorServiceConstants.COUNTRY_CODES.length; i++) for (int i = 0; i < TorServiceConstants.COUNTRY_CODES.length; i++)
{ {