Fix Friendica connection issue

This commit is contained in:
Thomas 2022-05-16 19:01:02 +02:00
parent 071bf82bc7
commit 5d2c83fab3
2 changed files with 2 additions and 2 deletions

View file

@ -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";

View file

@ -656,7 +656,7 @@ public class TimelinesVM extends AndroidViewModel {
if (getMarkerResponse.isSuccessful()) {
marker = getMarkerResponse.body();
}
} catch (IOException e) {
} catch (Exception e) {
e.printStackTrace();
}
}