added new message and rename msg
This commit is contained in:
parent
f37c77267a
commit
e918700bca
11 changed files with 22 additions and 12 deletions
|
@ -279,7 +279,7 @@ public class BInstallerActivity extends AppCompatActivity {
|
||||||
String segmentName = progress.getString(DownloadWorker.PROGRESS_SEGMENT_NAME);
|
String segmentName = progress.getString(DownloadWorker.PROGRESS_SEGMENT_NAME);
|
||||||
int percent = progress.getInt(DownloadWorker.PROGRESS_SEGMENT_PERCENT, 0);
|
int percent = progress.getInt(DownloadWorker.PROGRESS_SEGMENT_PERCENT, 0);
|
||||||
if (percent > 0) {
|
if (percent > 0) {
|
||||||
mDownloadSummaryInfo.setText("Downloading .. " + segmentName);
|
mDownloadSummaryInfo.setText(getString(R.string.msg_download_started) + segmentName);
|
||||||
}
|
}
|
||||||
if (percent > 0) {
|
if (percent > 0) {
|
||||||
mProgressIndicator.setIndeterminate(false);
|
mProgressIndicator.setIndeterminate(false);
|
||||||
|
@ -295,7 +295,7 @@ public class BInstallerActivity extends AppCompatActivity {
|
||||||
String result;
|
String result;
|
||||||
switch (workInfo.getState()) {
|
switch (workInfo.getState()) {
|
||||||
case FAILED:
|
case FAILED:
|
||||||
result = getString(R.string.msg_download_faild);
|
result = getString(R.string.msg_download_failed);
|
||||||
break;
|
break;
|
||||||
case CANCELLED:
|
case CANCELLED:
|
||||||
result = getString(R.string.msg_download_cancel);
|
result = getString(R.string.msg_download_cancel);
|
||||||
|
|
|
@ -86,8 +86,9 @@
|
||||||
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
||||||
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
||||||
|
|
||||||
<string name="msg_download_faild">Download failed</string>
|
<string name="msg_download_failed">Download failed</string>
|
||||||
<string name="msg_download_cancel">Download cancelled</string>
|
<string name="msg_download_cancel">Download cancelled</string>
|
||||||
<string name="msg_download_succeed">Download succeeded</string>
|
<string name="msg_download_succeed">Download succeeded</string>
|
||||||
|
<string name="msg_download_started">"Downloading .. "</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -85,8 +85,9 @@
|
||||||
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
||||||
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
||||||
|
|
||||||
<string name="msg_download_faild">Download failed</string>
|
<string name="msg_download_failed">Download failed</string>
|
||||||
<string name="msg_download_cancel">Download cancelled</string>
|
<string name="msg_download_cancel">Download cancelled</string>
|
||||||
<string name="msg_download_succeed">Download succeeded</string>
|
<string name="msg_download_succeed">Download succeeded</string>
|
||||||
|
<string name="msg_download_started">"Downloading .. "</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -86,8 +86,9 @@
|
||||||
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
||||||
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
||||||
|
|
||||||
<string name="msg_download_faild">Download failed</string>
|
<string name="msg_download_failed">Download failed</string>
|
||||||
<string name="msg_download_cancel">Download cancelled</string>
|
<string name="msg_download_cancel">Download cancelled</string>
|
||||||
<string name="msg_download_succeed">Download succeeded</string>
|
<string name="msg_download_succeed">Download succeeded</string>
|
||||||
|
<string name="msg_download_started">"Downloading .. "</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -86,8 +86,9 @@
|
||||||
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
||||||
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
||||||
|
|
||||||
<string name="msg_download_faild">Download failed</string>
|
<string name="msg_download_failed">Download failed</string>
|
||||||
<string name="msg_download_cancel">Download cancelled</string>
|
<string name="msg_download_cancel">Download cancelled</string>
|
||||||
<string name="msg_download_succeed">Download succeeded</string>
|
<string name="msg_download_succeed">Download succeeded</string>
|
||||||
|
<string name="msg_download_started">"Downloading .. "</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -85,8 +85,9 @@
|
||||||
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
||||||
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
||||||
|
|
||||||
<string name="msg_download_faild">Download failed</string>
|
<string name="msg_download_failed">Download failed</string>
|
||||||
<string name="msg_download_cancel">Download cancelled</string>
|
<string name="msg_download_cancel">Download cancelled</string>
|
||||||
<string name="msg_download_succeed">Download succeeded</string>
|
<string name="msg_download_succeed">Download succeeded</string>
|
||||||
|
<string name="msg_download_started">"Downloading .. "</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -86,8 +86,9 @@
|
||||||
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
||||||
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
||||||
|
|
||||||
<string name="msg_download_faild">Download failed</string>
|
<string name="msg_download_failed">Download failed</string>
|
||||||
<string name="msg_download_cancel">Download cancelled</string>
|
<string name="msg_download_cancel">Download cancelled</string>
|
||||||
<string name="msg_download_succeed">Download succeeded</string>
|
<string name="msg_download_succeed">Download succeeded</string>
|
||||||
|
<string name="msg_download_started">"Downloading .. "</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -86,8 +86,9 @@
|
||||||
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
||||||
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
||||||
|
|
||||||
<string name="msg_download_faild">Download failed</string>
|
<string name="msg_download_failed">Download failed</string>
|
||||||
<string name="msg_download_cancel">Download cancelled</string>
|
<string name="msg_download_cancel">Download cancelled</string>
|
||||||
<string name="msg_download_succeed">Download succeeded</string>
|
<string name="msg_download_succeed">Download succeeded</string>
|
||||||
|
<string name="msg_download_started">"Downloading .. "</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -80,8 +80,9 @@
|
||||||
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
||||||
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
||||||
|
|
||||||
<string name="msg_download_faild">Download failed</string>
|
<string name="msg_download_failed">Download failed</string>
|
||||||
<string name="msg_download_cancel">Download cancelled</string>
|
<string name="msg_download_cancel">Download cancelled</string>
|
||||||
<string name="msg_download_succeed">Download succeeded</string>
|
<string name="msg_download_succeed">Download succeeded</string>
|
||||||
|
<string name="msg_download_started">"Downloading .. "</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -86,8 +86,9 @@
|
||||||
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
||||||
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
||||||
|
|
||||||
<string name="msg_download_faild">Download failed</string>
|
<string name="msg_download_failed">Download failed</string>
|
||||||
<string name="msg_download_cancel">Download cancelled</string>
|
<string name="msg_download_cancel">Download cancelled</string>
|
||||||
<string name="msg_download_succeed">Download succeeded</string>
|
<string name="msg_download_succeed">Download succeeded</string>
|
||||||
|
<string name="msg_download_started">"Downloading .. "</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -86,9 +86,10 @@
|
||||||
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
<string name="action_version_diff3">Cancel now, complete on an other day</string>
|
||||||
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
<string name="summary_new_version">The new data version needs a new app. Please update BRouter first</string>
|
||||||
|
|
||||||
<string name="msg_download_faild">Download failed</string>
|
<string name="msg_download_failed">Download failed</string>
|
||||||
<string name="msg_download_cancel">Download cancelled</string>
|
<string name="msg_download_cancel">Download cancelled</string>
|
||||||
<string name="msg_download_succeed">Download succeeded</string>
|
<string name="msg_download_succeed">Download succeeded</string>
|
||||||
|
<string name="msg_download_started">"Downloading .. "</string>
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue