|
@@ -52,13 +52,12 @@ import macampcorp.macamp.game.challenges.Challenge;
|
|
|
import macampcorp.macamp.game.Indice;
|
|
|
import macampcorp.macamp.game.scheduler.Scheduler;
|
|
|
import macampcorp.macamp.game.scheduler.SpecialTask;
|
|
|
-import macampcorp.macamp.lang.Locale;
|
|
|
import macampcorp.macamp.ui.Sound;
|
|
|
import macampcorp.macamp.utils.AndroidResources;
|
|
|
import macampcorp.macamp.utils.L;
|
|
|
|
|
|
|
|
|
-public class HostActivity extends Activity implements ChallengeFragment.OnFragmentInteractionListener {
|
|
|
+public class HostActivity extends LocaleCompatActivity implements ChallengeFragment.OnFragmentInteractionListener {
|
|
|
public static final int REQUEST_CODE = 25;
|
|
|
protected Game mGame;
|
|
|
protected TextView mUITimeLeft;
|
|
@@ -77,11 +76,6 @@ public class HostActivity extends Activity implements ChallengeFragment.OnFragme
|
|
|
|
|
|
private static final int ACTIVITY_RESULT_RESOURCE_VIEWER_SCHEDULER = 2;
|
|
|
|
|
|
- public String _(int x)
|
|
|
- {
|
|
|
- return getResources().getString(x);
|
|
|
- }
|
|
|
-
|
|
|
private Timer mTimer;
|
|
|
private Runnable mTimerTick = new Runnable() {
|
|
|
public void run() {
|
|
@@ -272,15 +266,15 @@ public class HostActivity extends Activity implements ChallengeFragment.OnFragme
|
|
|
{
|
|
|
Indice x = mCurrentFragment.getChallenge().peakNextIndice();
|
|
|
int c = Math.round(x.getPenality()*60);
|
|
|
- String out = ""+c+" "+_(R.string.secondes);
|
|
|
+ String out = ""+c+" "+locale(R.string.secondes);
|
|
|
if(c>=60)
|
|
|
- out=(c/60)+" "+_(R.string.minutes )+" "+
|
|
|
- _(R.string.and)+" "+(c%60)+" "+_(R.string.secondes);
|
|
|
+ out=(c/60)+" "+locale(R.string.minutes )+" "+
|
|
|
+ locale(R.string.and)+" "+(c%60)+" "+locale(R.string.secondes);
|
|
|
|
|
|
new AlertDialog.Builder(this)
|
|
|
- .setTitle(_(R.string.dialog_sure_title))
|
|
|
- .setMessage(_(R.string.dialog_sure_pre)+" "+out+
|
|
|
- _(R.string.dialog_sure_post))
|
|
|
+ .setTitle(locale(R.string.dialog_sure_title))
|
|
|
+ .setMessage(locale(R.string.dialog_sure_pre)+" "+out+
|
|
|
+ locale(R.string.dialog_sure_post))
|
|
|
.setNegativeButton(android.R.string.no, null)
|
|
|
.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
|
|
|
public void onClick(DialogInterface arg0, int arg1) {
|