.class public final Lcom/google/android/material/resources/CancelableFontCallback; .super Lcom/google/android/material/resources/TextAppearanceFontCallback; .source "CancelableFontCallback.java" # annotations .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope; } .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/android/material/resources/CancelableFontCallback$ApplyFont; } .end annotation # instance fields .field private final applyFont:Lcom/google/android/material/resources/CancelableFontCallback$ApplyFont; .field private cancelled:Z .field private final fallbackFont:Landroid/graphics/Typeface; # direct methods .method public constructor (Lcom/google/android/material/resources/CancelableFontCallback$ApplyFont;Landroid/graphics/Typeface;)V .locals 0 .line 1 invoke-direct {p0}, Lcom/google/android/material/resources/TextAppearanceFontCallback;->()V .line 2 iput-object p2, p0, Lcom/google/android/material/resources/CancelableFontCallback;->fallbackFont:Landroid/graphics/Typeface; .line 3 iput-object p1, p0, Lcom/google/android/material/resources/CancelableFontCallback;->applyFont:Lcom/google/android/material/resources/CancelableFontCallback$ApplyFont; return-void .end method .method private updateIfNotCancelled(Landroid/graphics/Typeface;)V .locals 1 .line 1 iget-boolean v0, p0, Lcom/google/android/material/resources/CancelableFontCallback;->cancelled:Z if-nez v0, :cond_0 .line 2 iget-object v0, p0, Lcom/google/android/material/resources/CancelableFontCallback;->applyFont:Lcom/google/android/material/resources/CancelableFontCallback$ApplyFont; invoke-interface {v0, p1}, Lcom/google/android/material/resources/CancelableFontCallback$ApplyFont;->apply(Landroid/graphics/Typeface;)V :cond_0 return-void .end method # virtual methods .method public cancel()V .locals 1 const/4 v0, 0x1 .line 1 iput-boolean v0, p0, Lcom/google/android/material/resources/CancelableFontCallback;->cancelled:Z return-void .end method .method public onFontRetrievalFailed(I)V .locals 0 .line 1 iget-object p1, p0, Lcom/google/android/material/resources/CancelableFontCallback;->fallbackFont:Landroid/graphics/Typeface; invoke-direct {p0, p1}, Lcom/google/android/material/resources/CancelableFontCallback;->updateIfNotCancelled(Landroid/graphics/Typeface;)V return-void .end method .method public onFontRetrieved(Landroid/graphics/Typeface;Z)V .locals 0 .line 1 invoke-direct {p0, p1}, Lcom/google/android/material/resources/CancelableFontCallback;->updateIfNotCancelled(Landroid/graphics/Typeface;)V return-void .end method