more new resources from hardcoded string
This commit is contained in:
parent
2669ae9558
commit
b9cd75b7a0
2 changed files with 5 additions and 2 deletions
|
@ -214,7 +214,8 @@ public class BInstallerActivity extends AppCompatActivity {
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
} catch (IllegalStateException e) {
|
} catch (IllegalStateException e) {
|
||||||
Toast.makeText(this, "Too much data for download. Please reduce.", Toast.LENGTH_LONG).show();
|
Object data;
|
||||||
|
Toast.makeText(this, R.string.msg_too_much_data, Toast.LENGTH_LONG).show();
|
||||||
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return;
|
return;
|
||||||
|
@ -264,7 +265,7 @@ public class BInstallerActivity extends AppCompatActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (workInfo.getState() == WorkInfo.State.ENQUEUED) {
|
if (workInfo.getState() == WorkInfo.State.ENQUEUED) {
|
||||||
Toast.makeText(this, "Download scheduled. Check internet connection if it doesn't start.", Toast.LENGTH_LONG).show();
|
Toast.makeText(this, R.string.msg_download_start, Toast.LENGTH_LONG).show();
|
||||||
mProgressIndicator.hide();
|
mProgressIndicator.hide();
|
||||||
mProgressIndicator.setIndeterminate(true);
|
mProgressIndicator.setIndeterminate(true);
|
||||||
mProgressIndicator.show();
|
mProgressIndicator.show();
|
||||||
|
|
|
@ -53,5 +53,7 @@
|
||||||
|
|
||||||
<string name="msg_no_profile">no profile data</string>
|
<string name="msg_no_profile">no profile data</string>
|
||||||
<string name="msg_no_used_profile">, no used profile</string>
|
<string name="msg_no_used_profile">, no used profile</string>
|
||||||
|
<string name="msg_too_much_data">Too much data for download. Please reduce.</string>
|
||||||
|
<string name="msg_download_start">Download scheduled. Check internet connection if it doesn\'t start.</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue