.class public Lcom/journeyapps/barcodescanner/Util; .super Ljava/lang/Object; .source "Util.java" # direct methods .method public constructor ()V .locals 0 .line 8 invoke-direct {p0}, Ljava/lang/Object;->()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;->(Ljava/lang/String;)V throw v0 .end method