HeifExifUtil$HeifExifUtilAndroidN.smali
.class public Lcom/facebook/imageutils/HeifExifUtil$HeifExifUtilAndroidN;
.super Ljava/lang/Object;
.source "HeifExifUtil.java"
# annotations
.annotation build Lcom/facebook/soloader/DoNotOptimize;
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imageutils/HeifExifUtil;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "HeifExifUtilAndroidN"
.end annotation
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getOrientation(Ljava/io/InputStream;)I
.registers 3
.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_c
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_c} :catch_d
return p0
:catch_d
move-exception p0
const-string v0, "HeifExifUtil"
const-string v1, "Failed reading Heif Exif orientation -> ignoring"
invoke-static {v0, v1, p0}, Lcom/facebook/common/logging/FLog;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
const/4 p0, 0x0
return p0
.end method