apkfuckery/com.discord/smali/com/facebook/imageutils/HeifExifUtil$HeifExifUtilAndroidN.smali
2019-07-29 22:14:17 +02:00

64 lines
1.5 KiB
Smali

.class Lcom/facebook/imageutils/HeifExifUtil$HeifExifUtilAndroidN;
.super Ljava/lang/Object;
.source "HeifExifUtil.java"
# annotations
.annotation build Lcom/facebook/soloader/d;
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imageutils/HeifExifUtil;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "HeifExifUtilAndroidN"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static j(Ljava/io/InputStream;)I
.locals 2
.annotation build Landroidx/annotation/RequiresApi;
api = 0x18
.end annotation
:try_start_0
new-instance v0, Landroid/media/ExifInterface;
invoke-direct {v0, p0}, Landroid/media/ExifInterface;-><init>(Ljava/io/InputStream;)V
const-string p0, "Orientation"
const/4 v1, 0x1
invoke-virtual {v0, p0, v1}, Landroid/media/ExifInterface;->getAttributeInt(Ljava/lang/String;I)I
move-result p0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return p0
:catch_0
move-exception p0
const-string v0, "HeifExifUtil"
const-string v1, "Failed reading Heif Exif orientation -> ignoring"
invoke-static {v0, v1, p0}, Lcom/facebook/common/e/a;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
const/4 p0, 0x0
return p0
.end method