mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-23 01:00:04 +02:00
Fix a crash
This commit is contained in:
parent
16686e88eb
commit
336fe936e8
1 changed files with 6 additions and 5 deletions
|
@ -82,6 +82,11 @@ public class FragmentMastodonAccount extends Fragment {
|
||||||
|
|
||||||
instance = currentInstance;
|
instance = currentInstance;
|
||||||
token = currentToken;
|
token = currentToken;
|
||||||
|
flagLoading = false;
|
||||||
|
binding = FragmentPaginationBinding.inflate(inflater, container, false);
|
||||||
|
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(requireActivity());
|
||||||
|
boolean displayScrollBar = sharedpreferences.getBoolean(getString(R.string.SET_TIMELINE_SCROLLBAR), false);
|
||||||
|
binding.recyclerView.setVerticalScrollBarEnabled(displayScrollBar);
|
||||||
if (getArguments() != null) {
|
if (getArguments() != null) {
|
||||||
long bundleId = getArguments().getLong(Helper.ARG_INTENT_ID, -1);
|
long bundleId = getArguments().getLong(Helper.ARG_INTENT_ID, -1);
|
||||||
if (bundleId != -1) {
|
if (bundleId != -1) {
|
||||||
|
@ -100,11 +105,7 @@ public class FragmentMastodonAccount extends Fragment {
|
||||||
initializeAfterBundle(null);
|
initializeAfterBundle(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
flagLoading = false;
|
|
||||||
binding = FragmentPaginationBinding.inflate(inflater, container, false);
|
|
||||||
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(requireActivity());
|
|
||||||
boolean displayScrollBar = sharedpreferences.getBoolean(getString(R.string.SET_TIMELINE_SCROLLBAR), false);
|
|
||||||
binding.recyclerView.setVerticalScrollBarEnabled(displayScrollBar);
|
|
||||||
return binding.getRoot();
|
return binding.getRoot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue