From edd1124c32e0447375542cea678a56eeb3bc3db4 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Wed, 2 Nov 2016 07:32:13 +0100 Subject: [PATCH] Updated Jabit and fixed the update of the "unread messages" badge --- app/build.gradle | 4 ++-- app/src/main/java/ch/dissem/apps/abit/MainActivity.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 1f657e3..7571cbe 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -36,12 +36,13 @@ android { } } -ext.jabitVersion = '2.0.3' +ext.jabitVersion = '2.0.4' dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:25.0.0' compile 'com.android.support:support-v4:25.0.0' compile 'com.android.support:design:25.0.0' + compile 'com.android.support.constraint:constraint-layout:1.0.0-beta1' compile "ch.dissem.jabit:jabit-core:$jabitVersion" compile "ch.dissem.jabit:jabit-networking:$jabitVersion" @@ -72,7 +73,6 @@ dependencies { testCompile 'junit:junit:4.12' testCompile 'org.mockito:mockito-core:1.10.19' - compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha9' } idea.module { diff --git a/app/src/main/java/ch/dissem/apps/abit/MainActivity.java b/app/src/main/java/ch/dissem/apps/abit/MainActivity.java index 37c18d3..e49e5a3 100644 --- a/app/src/main/java/ch/dissem/apps/abit/MainActivity.java +++ b/app/src/main/java/ch/dissem/apps/abit/MainActivity.java @@ -452,6 +452,7 @@ public class MainActivity extends AppCompatActivity } else { ((PrimaryDrawerItem) item).withBadge((String) null); } + drawer.updateItem(item); } } }