Rabbit-R1/switch port/smali/smali_classes3/com/journeyapps/barcodescanner/Util.smali
2024-05-21 17:08:36 -04:00

41 lines
847 B
Smali

.class public Lcom/journeyapps/barcodescanner/Util;
.super Ljava/lang/Object;
.source "Util.java"
# direct methods
.method public constructor <init>()V
.locals 0
.line 8
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static validateMainThread()V
.locals 2
.line 10
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v0
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
move-result-object v1
if-ne v0, v1, :cond_0
return-void
.line 11
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Must be called from the main thread."
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method