Skip to content

Commit

Permalink
– updated the widget to display the game names
Browse files Browse the repository at this point in the history
  • Loading branch information
uruba committed Feb 7, 2016
1 parent 4fe5d2f commit 85baae5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public RemoteViews getViewAt(int position) {

ServerInfo serverInfo = serverList.get(position);

remoteView.setTextViewText(R.id.server_name, serverInfo.getServerName());
remoteView.setTextViewText(R.id.server_name, String.format(context.getString(R.string.widget_server_name), serverInfo.getServerName(), serverInfo.getGameName()));
remoteView.setTextViewText(R.id.number_of_players, serverInfo.getFormattedPlayerCountString(context));
remoteView.setProgressBar(
R.id.number_of_players_progressbar,
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<string name="server_list_refreshed">The server list has been refreshed</string>
<string name="meetup_list_refreshed">The meetup list has been refreshed</string>
<string name="last_updated">Last updated %1$s</string>
<string name="widget_title">ETS2MP Status</string>
<string name="widget_title">TruckersMP Status</string>
<string name="widget_server_name">%1$s (%2$s)</string>
<string name="server_list_refreshed_widget">ETS2MP server list has been refreshed</string>
<string name="as_of">As of %1$s</string>
<string name="not_available_now">N/A right now</string>
Expand Down

0 comments on commit 85baae5

Please sign in to comment.