mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-02 14:27:10 +01:00
Fix following users failed.
This commit is contained in:
parent
ba546a27e4
commit
6c3a8c9340
@ -779,7 +779,7 @@ public class ViewSubredditDetailActivity extends BaseActivity implements SortTyp
|
|||||||
|
|
||||||
if (subscriptionReady) {
|
if (subscriptionReady) {
|
||||||
subscriptionReady = false;
|
subscriptionReady = false;
|
||||||
if (subscribeSubredditChip.getText().equals(getResources().getString(R.string.subscribe))) {
|
if (getResources().getString(R.string.subscribe).contentEquals(subscribeSubredditChip.getText())) {
|
||||||
SubredditSubscription.subscribeToSubreddit(mOauthRetrofit, mRetrofit, mAccessToken,
|
SubredditSubscription.subscribeToSubreddit(mOauthRetrofit, mRetrofit, mAccessToken,
|
||||||
subredditName, mAccountName, mRedditDataRoomDatabase,
|
subredditName, mAccountName, mRedditDataRoomDatabase,
|
||||||
new SubredditSubscription.SubredditSubscriptionListener() {
|
new SubredditSubscription.SubredditSubscriptionListener() {
|
||||||
|
@ -69,8 +69,8 @@ import ml.docilealligator.infinityforreddit.DeleteThing;
|
|||||||
import ml.docilealligator.infinityforreddit.FragmentCommunicator;
|
import ml.docilealligator.infinityforreddit.FragmentCommunicator;
|
||||||
import ml.docilealligator.infinityforreddit.Infinity;
|
import ml.docilealligator.infinityforreddit.Infinity;
|
||||||
import ml.docilealligator.infinityforreddit.MarkPostAsReadInterface;
|
import ml.docilealligator.infinityforreddit.MarkPostAsReadInterface;
|
||||||
import ml.docilealligator.infinityforreddit.RecyclerViewContentScrollingInterface;
|
|
||||||
import ml.docilealligator.infinityforreddit.R;
|
import ml.docilealligator.infinityforreddit.R;
|
||||||
|
import ml.docilealligator.infinityforreddit.RecyclerViewContentScrollingInterface;
|
||||||
import ml.docilealligator.infinityforreddit.RedditDataRoomDatabase;
|
import ml.docilealligator.infinityforreddit.RedditDataRoomDatabase;
|
||||||
import ml.docilealligator.infinityforreddit.SortType;
|
import ml.docilealligator.infinityforreddit.SortType;
|
||||||
import ml.docilealligator.infinityforreddit.SortTypeSelectionCallback;
|
import ml.docilealligator.infinityforreddit.SortTypeSelectionCallback;
|
||||||
@ -416,7 +416,7 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele
|
|||||||
|
|
||||||
if (subscriptionReady) {
|
if (subscriptionReady) {
|
||||||
subscriptionReady = false;
|
subscriptionReady = false;
|
||||||
if (subscribeUserChip.getText().equals(resources.getString(R.string.follow))) {
|
if (resources.getString(R.string.follow).contentEquals(subscribeUserChip.getText())) {
|
||||||
UserFollowing.followUser(mOauthRetrofit, mRetrofit, mAccessToken,
|
UserFollowing.followUser(mOauthRetrofit, mRetrofit, mAccessToken,
|
||||||
username, mAccountName, subscribedUserDao, new UserFollowing.UserFollowingListener() {
|
username, mAccountName, subscribedUserDao, new UserFollowing.UserFollowingListener() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user