mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix Friendica connection issue
This commit is contained in:
parent
071bf82bc7
commit
5d2c83fab3
2 changed files with 2 additions and 2 deletions
|
@ -1060,7 +1060,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
|||
if (statusDraft.visibility == null) {
|
||||
if (position > 0) {
|
||||
statusDraft.visibility = statusList.get(position - 1).visibility;
|
||||
} else if (BaseMainActivity.accountWeakReference.get().mastodon_account != null) {
|
||||
} else if (BaseMainActivity.accountWeakReference.get().mastodon_account != null && BaseMainActivity.accountWeakReference.get().mastodon_account.source != null) {
|
||||
statusDraft.visibility = BaseMainActivity.accountWeakReference.get().mastodon_account.source.privacy;
|
||||
} else {
|
||||
statusDraft.visibility = "public";
|
||||
|
|
|
@ -656,7 +656,7 @@ public class TimelinesVM extends AndroidViewModel {
|
|||
if (getMarkerResponse.isSuccessful()) {
|
||||
marker = getMarkerResponse.body();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue