diff --git a/app/src/main/java/xyz/monkeytong/hongbao/activities/MainActivity.java b/app/src/main/java/xyz/monkeytong/hongbao/activities/MainActivity.java index 64d19ea9..c169c229 100644 --- a/app/src/main/java/xyz/monkeytong/hongbao/activities/MainActivity.java +++ b/app/src/main/java/xyz/monkeytong/hongbao/activities/MainActivity.java @@ -83,6 +83,7 @@ protected void onPause() { protected void onResume() { super.onResume(); + updateServiceStatus(); // Check for update when WIFI is connected or on first time. if (ConnectivityUtil.isWifi(this) || UpdateTask.count == 0) new UpdateTask(this, false).update(); diff --git a/app/src/main/java/xyz/monkeytong/hongbao/activities/SettingsActivity.java b/app/src/main/java/xyz/monkeytong/hongbao/activities/SettingsActivity.java index d96d095a..72cc02e1 100644 --- a/app/src/main/java/xyz/monkeytong/hongbao/activities/SettingsActivity.java +++ b/app/src/main/java/xyz/monkeytong/hongbao/activities/SettingsActivity.java @@ -47,7 +47,7 @@ private void prepareSettings() { title = bundle.getString("title"); fragId = bundle.getString("frag_id"); } else { - title = "偏好设置"; + title = getString(R.string.preference); fragId = "GeneralSettingsFragment"; }