Fix small issues

This commit is contained in:
vshcherb 2014-05-28 18:39:20 +02:00
parent f28895a136
commit 01f2085267
2 changed files with 3 additions and 3 deletions

View file

@ -9,6 +9,8 @@
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
-->
<string name="osmo_use_server_name">Registered name</string>
<string name="osmo_connect_to_my_nickname">My nickname</string>
<string name="osmo_user_name">User</string>
<string name="color_red">red</string>

View file

@ -641,9 +641,6 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
final View mgv = v.findViewById(R.id.MyGroupName);
final EditText nickname = (EditText) v.findViewById(R.id.NickName);
if(app.getSettings().OSMO_USER_NAME.get().isEmpty()) {
app.getSettings().OSMO_USER_NAME.set(getString(R.string.osmo_user_name) + " " + new Random(10));
}
nickname.setText(app.getSettings().OSMO_USER_NAME.get());
device.setChecked(true);
@ -658,6 +655,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
} else {
labelTracker.setText(R.string.osmo_connect_to_group_id);
labelName.setText(R.string.osmo_group_name);
name.setHint(R.string.osmo_use_server_name);
mgv.setVisibility(View.VISIBLE);
}
}