mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 12:47:26 +01:00
Fixed bug that doesnt show user being followed (#707)
* In anonymous mode, fixed bug in CheckIsFollowingUser.java that does not check if accountName is null or not, which prevents room from retrieving SubscribedUserData to check if the user is followed or not. Also updated Room version to 2.4.2 to be compatible with M1 macbook. * Simplified SubscribedUserData accountName null check code
This commit is contained in:
parent
c6a06a10b2
commit
132bd354cd
@ -63,7 +63,7 @@ dependencies {
|
||||
implementation "androidx.paging:paging-guava:$pagingVersion"
|
||||
implementation 'androidx.preference:preference:1.1.1'
|
||||
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
||||
def roomVersion = "2.3.0"
|
||||
def roomVersion = "2.4.2"
|
||||
implementation "androidx.room:room-runtime:$roomVersion"
|
||||
annotationProcessor "androidx.room:room-compiler:$roomVersion"
|
||||
implementation 'androidx.viewpager2:viewpager2:1.1.0-beta01'
|
||||
|
@ -12,7 +12,7 @@ public class CheckIsFollowingUser {
|
||||
RedditDataRoomDatabase redditDataRoomDatabase, String username,
|
||||
String accountName, CheckIsFollowingUserListener checkIsFollowingUserListener) {
|
||||
executor.execute(() -> {
|
||||
SubscribedUserData subscribedUserData = redditDataRoomDatabase.subscribedUserDao().getSubscribedUser(username, accountName);
|
||||
SubscribedUserData subscribedUserData = redditDataRoomDatabase.subscribedUserDao().getSubscribedUser(username, accountName == null ? "-" : accountName);
|
||||
handler.post(() -> {
|
||||
if (subscribedUserData != null) {
|
||||
checkIsFollowingUserListener.isSubscribed();
|
||||
|
Loading…
Reference in New Issue
Block a user