diff options
author | 2015-06-15 16:04:43 -0700 | |
---|---|---|
committer | 2015-06-15 16:04:43 -0700 | |
commit | 851a8b54897811fbb7fcaaf1680a6b8a1df362ee (patch) | |
tree | bebf9b69260c6e4aebdcd2cd9d498a3690c90d5b /java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java | |
parent | 7891733c73245bddf0a53f150187fa9fc3f97866 (diff) | |
download | latinime-851a8b54897811fbb7fcaaf1680a6b8a1df362ee.tar.gz latinime-851a8b54897811fbb7fcaaf1680a6b8a1df362ee.tar.xz latinime-851a8b54897811fbb7fcaaf1680a6b8a1df362ee.zip |
Hide Notification when downloading the keyboard metadata
Bug: 21797386
Change-Id: Iebe9d2f18c5c8325a5601d49d8c4c65166b67036
Diffstat (limited to 'java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java')
-rw-r--r-- | java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java b/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java index 6570171a6..f30f2480e 100644 --- a/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java +++ b/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java @@ -246,13 +246,10 @@ public final class UpdateHandler { } metadataRequest.setAllowedOverRoaming(res.getBoolean(R.bool.allow_over_roaming)); } - final boolean notificationVisible = updateNow - ? res.getBoolean(R.bool.display_notification_for_user_requested_update) - : res.getBoolean(R.bool.display_notification_for_auto_update); metadataRequest.setTitle(res.getString(R.string.download_description)); - metadataRequest.setNotificationVisibility(notificationVisible - ? Request.VISIBILITY_VISIBLE : Request.VISIBILITY_HIDDEN); + // Do not show the notification when downloading the metadata. + metadataRequest.setNotificationVisibility(Request.VISIBILITY_HIDDEN); metadataRequest.setVisibleInDownloadsUi( res.getBoolean(R.bool.metadata_downloads_visible_in_download_UI)); |