Fix empty notification

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-09-05 13:08:34 +02:00 committed by AndyScherzinger
parent b3a3d25186
commit 913e8659a9
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
3 changed files with 5 additions and 0 deletions

View file

@ -129,6 +129,7 @@ public class FileDownloader extends Service
mNotification = new NotificationCompat.Builder(this).setContentTitle(getApplicationContext(). mNotification = new NotificationCompat.Builder(this).setContentTitle(getApplicationContext().
getResources().getString(R.string.app_name)) getResources().getString(R.string.app_name))
.setContentText(getApplicationContext().getResources().getString(R.string.foreground_service_download))
.setSmallIcon(R.drawable.notification_icon) .setSmallIcon(R.drawable.notification_icon)
.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.notification_icon)) .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.notification_icon))
.setColor(ThemeUtils.primaryColor()) .setColor(ThemeUtils.primaryColor())

View file

@ -420,6 +420,7 @@ public class FileUploader extends Service
mNotification = new NotificationCompat.Builder(this).setContentTitle(getApplicationContext(). mNotification = new NotificationCompat.Builder(this).setContentTitle(getApplicationContext().
getResources().getString(R.string.app_name)) getResources().getString(R.string.app_name))
.setContentText(getApplicationContext().getResources().getString(R.string.foreground_service_upload))
.setSmallIcon(R.drawable.notification_icon) .setSmallIcon(R.drawable.notification_icon)
.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.notification_icon)) .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.notification_icon))
.setColor(ThemeUtils.primaryColor()) .setColor(ThemeUtils.primaryColor())

View file

@ -695,4 +695,7 @@
<string name="whats_new_fingerprint_content">Use your fingerprint to unlock the app</string> <string name="whats_new_fingerprint_content">Use your fingerprint to unlock the app</string>
<string name="fallback_weblogin_back">BACK</string> <string name="fallback_weblogin_back">BACK</string>
<string name="fallback_weblogin_text">Go back to old login method</string> <string name="fallback_weblogin_text">Go back to old login method</string>
<string name="foreground_service_upload">Uploading files...</string>
<string name="foreground_service_download">Downloading files...</string>
</resources> </resources>