~singpolyma/cheogram-android

fa95b418c56b2f04ce47fd89724e07cdf20aa69d — Stephen Paul Weber 1 year, 7 months ago 8daa655 + 5b62ee4
Merge branch 'debug'

* debug:
  Support API 33 feature detection
M build.gradle => build.gradle +1 -1
@@ 111,7 111,7 @@ ext {

android {
    namespace 'eu.siacs.conversations'
    compileSdkVersion 32
    compileSdkVersion 33

    defaultConfig {
        minSdkVersion 21

M src/main/java/eu/siacs/conversations/entities/Contact.java => src/main/java/eu/siacs/conversations/entities/Contact.java +5 -1
@@ 633,7 633,11 @@ public class Contact implements ListItem, Blockable {
    // This Contact is a gateway to use for voice calls, register it with OS
    public void registerAsPhoneAccount(XmppConnectionService ctx) {
        if (Build.VERSION.SDK_INT < 23) return;
        if (!ctx.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONNECTION_SERVICE)) return;
        if (Build.VERSION.SDK_INT >= 33) {
            if (!ctx.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELECOM)) return;
        } else {
            if (!ctx.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONNECTION_SERVICE)) return;
        }

        TelecomManager telecomManager = ctx.getSystemService(TelecomManager.class);


M src/main/java/eu/siacs/conversations/persistance/FileBackend.java => src/main/java/eu/siacs/conversations/persistance/FileBackend.java +5 -1
@@ 340,7 340,11 @@ public class FileBackend {
        } catch (Exception e) {
            width = -1;
        }
        metadataRetriever.release();
        try {
            metadataRetriever.release();
        } catch (final IOException e) {
            throw new NotAVideoFile();
        }
        Log.d(Config.LOGTAG, "extracted video dims " + width + "x" + height);
        return rotated ? new Dimensions(width, height) : new Dimensions(height, width);
    }