Fix Friendica connection issue

pull/95/head
Thomas 3 years ago
parent 071bf82bc7
commit 5d2c83fab3

@ -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…
Cancel
Save