Merge "Hide Notification when downloading the keyboard metadata" into jb-ub-latinimegoogle

main
Mohammadinamul Sheik 2015-06-16 00:23:01 +00:00 committed by Android (Google) Code Review
commit 94b4ffa17a
1 changed files with 2 additions and 5 deletions

View File

@ -246,13 +246,10 @@ public final class UpdateHandler {
} }
metadataRequest.setAllowedOverRoaming(res.getBoolean(R.bool.allow_over_roaming)); 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.setTitle(res.getString(R.string.download_description));
metadataRequest.setNotificationVisibility(notificationVisible // Do not show the notification when downloading the metadata.
? Request.VISIBILITY_VISIBLE : Request.VISIBILITY_HIDDEN); metadataRequest.setNotificationVisibility(Request.VISIBILITY_HIDDEN);
metadataRequest.setVisibleInDownloadsUi( metadataRequest.setVisibleInDownloadsUi(
res.getBoolean(R.bool.metadata_downloads_visible_in_download_UI)); res.getBoolean(R.bool.metadata_downloads_visible_in_download_UI));