diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-01-17 15:02:28 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-01-17 15:02:28 +0000 |
commit | 6c3a8c9340ea20c23171679ada4ac1f531592ec0 (patch) | |
tree | ad55d859fc1367ca112b30404d9d58213ec1c49e /app/src/main/java | |
parent | ba546a27e4b8b6e2306a17ba2c10f33b0728842f (diff) | |
download | infinity-for-reddit-6c3a8c9340ea20c23171679ada4ac1f531592ec0.tar infinity-for-reddit-6c3a8c9340ea20c23171679ada4ac1f531592ec0.tar.gz infinity-for-reddit-6c3a8c9340ea20c23171679ada4ac1f531592ec0.tar.bz2 infinity-for-reddit-6c3a8c9340ea20c23171679ada4ac1f531592ec0.tar.lz infinity-for-reddit-6c3a8c9340ea20c23171679ada4ac1f531592ec0.tar.xz infinity-for-reddit-6c3a8c9340ea20c23171679ada4ac1f531592ec0.tar.zst infinity-for-reddit-6c3a8c9340ea20c23171679ada4ac1f531592ec0.zip |
Fix following users failed.
Diffstat (limited to 'app/src/main/java')
2 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java index bc5cb1d7..ddb7fb1e 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java @@ -779,7 +779,7 @@ public class ViewSubredditDetailActivity extends BaseActivity implements SortTyp if (subscriptionReady) { 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, subredditName, mAccountName, mRedditDataRoomDatabase, new SubredditSubscription.SubredditSubscriptionListener() { diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java index 9884d797..ee88a095 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java @@ -69,8 +69,8 @@ import ml.docilealligator.infinityforreddit.DeleteThing; import ml.docilealligator.infinityforreddit.FragmentCommunicator; import ml.docilealligator.infinityforreddit.Infinity; import ml.docilealligator.infinityforreddit.MarkPostAsReadInterface; -import ml.docilealligator.infinityforreddit.RecyclerViewContentScrollingInterface; import ml.docilealligator.infinityforreddit.R; +import ml.docilealligator.infinityforreddit.RecyclerViewContentScrollingInterface; import ml.docilealligator.infinityforreddit.RedditDataRoomDatabase; import ml.docilealligator.infinityforreddit.SortType; import ml.docilealligator.infinityforreddit.SortTypeSelectionCallback; @@ -416,7 +416,7 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele if (subscriptionReady) { 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, username, mAccountName, subscribedUserDao, new UserFollowing.UserFollowingListener() { @Override |