aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-09-26 12:37:37 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-09-26 12:37:37 +0000
commit9a0067d71407a840f3db68cf2c7bb6b1150ea117 (patch)
tree420c5ba04d017a4039c92435894f992654503a79 /app
parentad99238ed98d95cdc6c9100d907623aaddf59d2d (diff)
downloadinfinity-for-reddit-9a0067d71407a840f3db68cf2c7bb6b1150ea117.tar
infinity-for-reddit-9a0067d71407a840f3db68cf2c7bb6b1150ea117.tar.gz
infinity-for-reddit-9a0067d71407a840f3db68cf2c7bb6b1150ea117.tar.bz2
infinity-for-reddit-9a0067d71407a840f3db68cf2c7bb6b1150ea117.tar.lz
infinity-for-reddit-9a0067d71407a840f3db68cf2c7bb6b1150ea117.tar.xz
infinity-for-reddit-9a0067d71407a840f3db68cf2c7bb6b1150ea117.tar.zst
infinity-for-reddit-9a0067d71407a840f3db68cf2c7bb6b1150ea117.zip
Fix anonymous multireddits not shown.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/CreateMultiRedditActivity.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubscribedThingListingActivity.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CreateMultiRedditActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CreateMultiRedditActivity.java
index f040b5e6..55b17e77 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CreateMultiRedditActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/CreateMultiRedditActivity.java
@@ -168,7 +168,7 @@ public class CreateMultiRedditActivity extends BaseActivity {
});
} else {
CreateMultiReddit.anonymousCreateMultiReddit(mExecutor, new Handler(), mRedditDataRoomDatabase,
- "/user/" + mAccountName + "/m/" + nameEditText.getText().toString(),
+ "/user/-/m/" + nameEditText.getText().toString(),
nameEditText.getText().toString(), descriptionEditText.getText().toString(),
mSubreddits, new CreateMultiReddit.CreateMultiRedditListener() {
@Override
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubscribedThingListingActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubscribedThingListingActivity.java
index 9b9b7e1a..22b1a469 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubscribedThingListingActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubscribedThingListingActivity.java
@@ -403,8 +403,8 @@ public class SubscribedThingListingActivity extends BaseActivity implements Acti
default: {
MultiRedditListingFragment fragment = new MultiRedditListingFragment();
Bundle bundle = new Bundle();
- bundle.putString(MultiRedditListingFragment.EXTRA_ACCESS_TOKEN, mAccessToken == null ? "-" : mAccountName);
- bundle.putString(MultiRedditListingFragment.EXTRA_ACCOUNT_NAME, mAccountName);
+ bundle.putString(MultiRedditListingFragment.EXTRA_ACCESS_TOKEN, mAccessToken);
+ bundle.putString(MultiRedditListingFragment.EXTRA_ACCOUNT_NAME, mAccountName == null ? "-" : mAccountName);
fragment.setArguments(bundle);
return fragment;
}