more new resources from hardcoded string

This commit is contained in:
afischerdev 2023-12-10 12:26:20 +01:00
parent 2669ae9558
commit b9cd75b7a0
2 changed files with 5 additions and 2 deletions

View file

@ -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();

View file

@ -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>