diff --git a/app/build.gradle b/app/build.gradle index d056a5ee..0c393bca 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId 'org.nuclearfog.twidda' minSdkVersion 16 targetSdkVersion 30 - versionCode 45 - versionName '1.10' + versionCode 46 + versionName '1.10.1' // limiting language support for smaller APK size resConfigs 'en', 'de-rDE', 'zh-rCN' vectorDrawables.useSupportLibrary true diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/UserAction.java b/app/src/main/java/org/nuclearfog/twidda/backend/UserAction.java index 17fedcbb..5e1dd966 100644 --- a/app/src/main/java/org/nuclearfog/twidda/backend/UserAction.java +++ b/app/src/main/java/org/nuclearfog/twidda/backend/UserAction.java @@ -125,10 +125,10 @@ public class UserAction extends AsyncTask { case ACTION_UNBLOCK: user = mTwitter.unblockUser(userId); publishProgress(user); - appDB.muteUser(userId, false); // remove from exclude list only if user is not muted relation = mTwitter.getConnection(userId); if (!relation.isMuted()) { + appDB.muteUser(userId, false); exclDB.removeUser(userId); } return relation; @@ -142,10 +142,10 @@ public class UserAction extends AsyncTask { case ACTION_UNMUTE: user = mTwitter.unmuteUser(userId); publishProgress(user); - appDB.muteUser(userId, false); // remove from exclude list only if user is not blocked relation = mTwitter.getConnection(userId); if (!relation.isBlocked()) { + appDB.muteUser(userId, false); exclDB.removeUser(userId); } return relation;