140 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			140 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Landroidx/appcompat/widget/AppCompatRatingBar;
 | |
| .super Landroid/widget/RatingBar;
 | |
| .source "AppCompatRatingBar.java"
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final a:Landroidx/appcompat/widget/i;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Landroid/content/Context;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1, v0}, Landroidx/appcompat/widget/AppCompatRatingBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/util/AttributeSet;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 2
 | |
|     sget v0, Landroidx/appcompat/R$attr;->ratingBarStyle:I
 | |
| 
 | |
|     invoke-direct {p0, p1, p2, v0}, Landroidx/appcompat/widget/AppCompatRatingBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
|     .locals 0
 | |
|     .param p1    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/util/AttributeSet;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0, p1, p2, p3}, Landroid/widget/RatingBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Landroid/widget/RatingBar;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-static {p0, p1}, Landroidx/appcompat/widget/e0;->a(Landroid/view/View;Landroid/content/Context;)V
 | |
| 
 | |
|     .line 5
 | |
|     new-instance p1, Landroidx/appcompat/widget/i;
 | |
| 
 | |
|     invoke-direct {p1, p0}, Landroidx/appcompat/widget/i;-><init>(Landroid/widget/ProgressBar;)V
 | |
| 
 | |
|     iput-object p1, p0, Landroidx/appcompat/widget/AppCompatRatingBar;->a:Landroidx/appcompat/widget/i;
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/i;->c(Landroid/util/AttributeSet;I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public declared-synchronized onMeasure(II)V
 | |
|     .locals 1
 | |
| 
 | |
|     monitor-enter p0
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     invoke-super {p0, p1, p2}, Landroid/widget/RatingBar;->onMeasure(II)V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object p2, p0, Landroidx/appcompat/widget/AppCompatRatingBar;->a:Landroidx/appcompat/widget/i;
 | |
| 
 | |
|     invoke-virtual {p2}, Landroidx/appcompat/widget/i;->b()Landroid/graphics/Bitmap;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     if-eqz p2, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p2}, Landroid/graphics/Bitmap;->getWidth()I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/RatingBar;->getNumStars()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     mul-int/2addr p2, v0
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p2, p1, v0}, Landroid/view/View;->resolveSizeAndState(III)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Landroid/widget/RatingBar;->getMeasuredHeight()I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0, p1, p2}, Landroid/widget/RatingBar;->setMeasuredDimension(II)V
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     .line 7
 | |
|     :cond_0
 | |
|     monitor-exit p0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     monitor-exit p0
 | |
| 
 | |
|     throw p1
 | |
| .end method
 |