From 9a0067d71407a840f3db68cf2c7bb6b1150ea117 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sun, 26 Sep 2021 20:37:37 +0800 Subject: Fix anonymous multireddits not shown. --- .../infinityforreddit/activities/CreateMultiRedditActivity.java | 2 +- .../infinityforreddit/activities/SubscribedThingListingActivity.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/main') 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; } -- cgit v1.2.3