alexandroid/decompiled/jadx/sources/com/imagepicker/Metadata.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

37 lines
1.1 KiB
Java

package com.imagepicker;
import android.util.Log;
import androidx.annotation.Nullable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes8.dex */
abstract class Metadata {
protected String datetime;
protected int height;
protected int width;
public abstract String getDateTime();
@Nullable
public String getDateTimeInUTC(String str, String str2) {
try {
Locale locale = Locale.US;
Date parse = new SimpleDateFormat(str2, locale).parse(str);
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ", locale);
if (parse != null) {
return simpleDateFormat.format(parse);
}
return null;
} catch (Exception e) {
Log.e("RNIP", "Could not parse image datetime to UTC: " + e.getMessage());
return null;
}
}
public abstract int getHeight();
public abstract int getWidth();
}