mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-18 14:27:43 +00:00
chore(android/app): Revert Toast notification
This commit is contained in:
parent
3502d6ffa5
commit
bf736d519d
3 changed files with 2 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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…</string>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue