mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-05 13:29:50 +02:00
Hide visibility option when creating or editing anonymous multireddit.
This commit is contained in:
@@ -111,6 +111,10 @@ public class CreateMultiRedditActivity extends BaseActivity {
|
|||||||
mAccessToken = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCESS_TOKEN, null);
|
mAccessToken = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCESS_TOKEN, null);
|
||||||
mAccountName = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCOUNT_NAME, "-");
|
mAccountName = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCOUNT_NAME, "-");
|
||||||
|
|
||||||
|
if (mAccessToken == null) {
|
||||||
|
visibilityLinearLayout.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
if (savedInstanceState != null) {
|
if (savedInstanceState != null) {
|
||||||
mSubreddits = savedInstanceState.getStringArrayList(SELECTED_SUBREDDITS_STATE);
|
mSubreddits = savedInstanceState.getStringArrayList(SELECTED_SUBREDDITS_STATE);
|
||||||
} else {
|
} else {
|
||||||
|
@@ -120,6 +120,10 @@ public class EditMultiRedditActivity extends BaseActivity {
|
|||||||
mAccessToken = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCESS_TOKEN, null);
|
mAccessToken = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCESS_TOKEN, null);
|
||||||
mAccountName = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCOUNT_NAME, "-");
|
mAccountName = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCOUNT_NAME, "-");
|
||||||
|
|
||||||
|
if (mAccessToken == null) {
|
||||||
|
visibilityLinearLayout.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
if (savedInstanceState != null) {
|
if (savedInstanceState != null) {
|
||||||
multiReddit = savedInstanceState.getParcelable(MULTI_REDDIT_STATE);
|
multiReddit = savedInstanceState.getParcelable(MULTI_REDDIT_STATE);
|
||||||
multipath = savedInstanceState.getString(MULTI_PATH_STATE);
|
multipath = savedInstanceState.getString(MULTI_PATH_STATE);
|
||||||
|
Reference in New Issue
Block a user