216 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			216 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lcom/skt/moment/widget/CircleProgress;
 | |
| .super Landroid/widget/FrameLayout;
 | |
| .source "CircleProgress.java"
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public a:Landroid/widget/ImageView;
 | |
| 
 | |
| .field public b:Landroid/widget/ImageView;
 | |
| 
 | |
| .field public c:Landroid/graphics/drawable/AnimationDrawable;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Landroid/content/Context;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, p1}, Lcom/skt/moment/widget/CircleProgress;->a(Landroid/content/Context;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0, p1}, Lcom/skt/moment/widget/CircleProgress;->a(Landroid/content/Context;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0, p1}, Lcom/skt/moment/widget/CircleProgress;->a(Landroid/content/Context;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public final a(Landroid/content/Context;)V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->removeAllViews()V
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Landroid/widget/FrameLayout$LayoutParams;
 | |
| 
 | |
|     const/4 v1, -0x2
 | |
| 
 | |
|     const/16 v2, 0x11
 | |
| 
 | |
|     invoke-direct {v0, v1, v1, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v1, Landroid/widget/ImageView;
 | |
| 
 | |
|     invoke-direct {v1, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
 | |
| 
 | |
|     iput-object v1, p0, Lcom/skt/moment/widget/CircleProgress;->b:Landroid/widget/ImageView;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v1, p0, Lcom/skt/moment/widget/CircleProgress;->b:Landroid/widget/ImageView;
 | |
| 
 | |
|     sget v2, Lcom/skt/moment/R$drawable;->img_loading_bg:I
 | |
| 
 | |
|     invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v1, p0, Lcom/skt/moment/widget/CircleProgress;->b:Landroid/widget/ImageView;
 | |
| 
 | |
|     invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
 | |
| 
 | |
|     .line 7
 | |
|     new-instance v1, Landroid/widget/ImageView;
 | |
| 
 | |
|     invoke-direct {v1, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
 | |
| 
 | |
|     iput-object v1, p0, Lcom/skt/moment/widget/CircleProgress;->a:Landroid/widget/ImageView;
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
 | |
| 
 | |
|     .line 9
 | |
|     iget-object p1, p0, Lcom/skt/moment/widget/CircleProgress;->a:Landroid/widget/ImageView;
 | |
| 
 | |
|     sget v0, Lcom/skt/moment/R$drawable;->effect_circle_progress:I
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setBackgroundResource(I)V
 | |
| 
 | |
|     .line 10
 | |
|     iget-object p1, p0, Lcom/skt/moment/widget/CircleProgress;->a:Landroid/widget/ImageView;
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public b()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/skt/moment/widget/CircleProgress;->c()V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/skt/moment/widget/CircleProgress;->a:Landroid/widget/ImageView;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/ImageView;->getBackground()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Landroid/graphics/drawable/AnimationDrawable;
 | |
| 
 | |
|     iput-object v0, p0, Lcom/skt/moment/widget/CircleProgress;->c:Landroid/graphics/drawable/AnimationDrawable;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     invoke-virtual {v0}, Landroid/graphics/drawable/AnimationDrawable;->start()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public c()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/skt/moment/widget/CircleProgress;->c:Landroid/graphics/drawable/AnimationDrawable;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Landroid/graphics/drawable/AnimationDrawable;->isRunning()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-ne v1, v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/skt/moment/widget/CircleProgress;->c:Landroid/graphics/drawable/AnimationDrawable;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/graphics/drawable/AnimationDrawable;->stop()V
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 4
 | |
|     iput-object v0, p0, Lcom/skt/moment/widget/CircleProgress;->c:Landroid/graphics/drawable/AnimationDrawable;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onDetachedFromWindow()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/skt/moment/widget/CircleProgress;->c()V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/skt/moment/widget/CircleProgress;->a:Landroid/widget/ImageView;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     invoke-static {v0}, Lib/d;->t(Landroid/widget/ImageView;)V
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/skt/moment/widget/CircleProgress;->b:Landroid/widget/ImageView;
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     invoke-static {v0}, Lib/d;->t(Landroid/widget/ImageView;)V
 | |
| 
 | |
|     .line 4
 | |
|     :cond_1
 | |
|     invoke-super {p0}, Landroid/widget/FrameLayout;->onDetachedFromWindow()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onSizeChanged(IIII)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/FrameLayout;->onSizeChanged(IIII)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/skt/moment/widget/CircleProgress;->b()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 |