~singpolyma/cheogram-android

5befa44ef9b6d8bc0524615879544a4b528f2d6b — Stephen Paul Weber 4 months ago 53f9e58
Fix crash on older android

Might make the behaviour slightly wrong, but better than a crash
1 files changed, 2 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/ui/XmppActivity.java
M src/main/java/eu/siacs/conversations/ui/XmppActivity.java => src/main/java/eu/siacs/conversations/ui/XmppActivity.java +2 -1
@@ 120,7 120,8 @@ public abstract class XmppActivity extends ActionBarActivity {
    protected Toast mToast;
    public Runnable onOpenPGPKeyPublished = () -> Toast.makeText(XmppActivity.this, R.string.openpgp_has_been_published, Toast.LENGTH_SHORT).show();
    protected ConferenceInvite mPendingConferenceInvite = null;
    protected PriorityQueue<Pair<Integer, ValueCallback<Uri[]>>> activityCallbacks = new PriorityQueue<>((x, y) -> y.first.compareTo(x.first));
    protected PriorityQueue<Pair<Integer, ValueCallback<Uri[]>>> activityCallbacks =
        Build.VERSION.SDK_INT >= 24 ? new PriorityQueue<>((x, y) -> y.first.compareTo(x.first)) : new PriorityQueue<>();
    protected ServiceConnection mConnection = new ServiceConnection() {

        @Override