chore(android/app): Revert Toast notification

This commit is contained in:
Darcy Wong 2021-08-06 10:27:08 +07:00
parent 3502d6ffa5
commit bf736d519d
3 changed files with 2 additions and 8 deletions

View file

@ -30,8 +30,8 @@ public class DownloadIntentService extends IntentService {
try {
int result = FileUtils.download(getApplicationContext(), url, destination, filename);
if (result == FileUtils.DOWNLOAD_SUCCESS) {
bundle.putString("filename", filename);
if (!this.cancelDownload) {
bundle.putString("filename", filename);
bundle.putString("destination", destination);
bundle.putString("language", languageID);
bundle.putSerializable("installMode", installMode);

View file

@ -48,10 +48,7 @@ public class DownloadResultReceiver extends ResultReceiver {
context.startActivity(packageIntent);
break;
case FileUtils.DOWNLOAD_CANCELLED :
downloadedFilename = resultData.getString("filename");
String message = String.format(context.getString(R.string.cancelled_downloading_package), downloadedFilename);
Toast.makeText(context, message,
Toast.LENGTH_SHORT).show();
// NO-OP
break;
}
super.onReceiveResult(resultCode, resultData);

View file

@ -193,9 +193,6 @@
<!-- Context: KMP Package strings -->
<string name="title_package_failed_to_install" comment="Error dialog title when package failed to install">Package %1$s failed to install</string>
<!-- Context: KMP Package strings -->
<string name="cancelled_downloading_package" comment="Cancelled download of package">Cancelled downloading %1$s package</string>
<!-- Context: KMP Package strings -->
<string name="downloading_keyboard_package" comment="Confirmation to download keyboard package filename">Downloading keyboard package\n%1$s&#8230;</string>