| | | | |
| Offset 1, 98 lines modified | Offset 1, 233 lines modified |
| 1 | .class·public·Lcom/android/car/ui/preference/CarUiRadioButtonPreference; | 1 | .class·public·Lcom/android/car/ui/preference/CarUiRadioButtonPreference; |
| 2 | .super·Landroidx/preference/TwoStatePreference; | 2 | .super·Landroidx/preference/TwoStatePreference; |
| 3 | .source·"CarUiRadioButtonPreference.java" | 3 | .source·"CarUiRadioButtonPreference.java" |
| | |
| | 4 | #·interfaces |
| | 5 | .implements·Lcom/android/car/ui/preference/UxRestrictablePreference; |
| | |
| | |
| | 6 | #·instance·fields |
| | 7 | .field·private·mRestrictedClickListener:Ljava/util/function/Consumer; |
| | 8 | ····.annotation·system·Ldalvik/annotation/Signature; |
| | 9 | ········value·=·{ |
| | 10 | ············"Ljava/util/function/Consumer<", |
| | 11 | ············"Landroidx/preference/Preference;", |
| | 12 | ············">;" |
| | 13 | ········} |
| | 14 | ····.end·annotation |
| | 15 | .end·field |
| | |
| | 16 | .field·private·mUxRestricted:Z |
| | |
| | |
| 4 | #·direct·methods | 17 | #·direct·methods |
| 5 | .method·public·constructor·<init>(Landroid/content/Context;)V | 18 | .method·public·constructor·<init>(Landroid/content/Context;)V |
| 6 | ····.locals·0 | 19 | ····.locals·1 |
| | |
| | 20 | ····const/4·v0,·0x0 |
| 7 | ····.line·49 | |
| 8 | ····invoke-direct·{p0,·p1},·Landroidx/preference/TwoStatePreference;-><init>(Landroid/content/Context;)V | |
| | |
| 9 | ····.line·50 | 21 | ····.line·60 |
| 10 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->init()V | 22 | ····invoke-direct·{p0,·p1,·v0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| | |
| 11 | ····return-void | 23 | ····return-void |
| 12 | .end·method | 24 | .end·method |
| | |
| 13 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 25 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| 14 | ····.locals·0 | 26 | ····.locals·2 |
| | |
| 15 | ····.line·44 | 27 | ····.line·55 |
| 16 | ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/TwoStatePreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 28 | ····sget·v0,·Lcom/android/car/ui/R$attr;->preferenceStyle:I |
| | |
| 17 | ····.line·45 | |
| 18 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->init()V | 29 | ····const·v1,·0x101008e |
| | |
| | 30 | ····invoke-static·{p1,·v0,·v1},·Landroidx/core/content/res/TypedArrayUtils;->getAttr(Landroid/content/Context;II)I |
| | |
| | 31 | ····move-result·v0 |
| | |
| | 32 | ····invoke-direct·{p0,·p1,·p2,·v0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
| | |
| 19 | ····return-void | 33 | ····return-void |
| 20 | .end·method | 34 | .end·method |
| | |
| 21 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 35 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
| 22 | ····.locals·0 | 36 | ····.locals·1 |
| | |
| | 37 | ····const/4·v0,·0x0 |
| 23 | ····.line·39 | |
| 24 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/preference/TwoStatePreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | |
| | |
| 25 | ····.line·40 | 38 | ····.line·49 |
| 26 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->init()V | 39 | ····invoke-direct·{p0,·p1,·p2,·p3,·v0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
| | |
| 27 | ····return-void | 40 | ····return-void |
| 28 | .end·method | 41 | .end·method |
| | |
| 29 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 42 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
| 30 | ····.locals·0 | 43 | ····.locals·0 |
| | |
| 31 | ····.line·34 | 44 | ····.line·44 |
| 32 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/TwoStatePreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 45 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/TwoStatePreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
| | |
| | 46 | ····const/4·p1,·0x0 |
| | |
| | 47 | ····.line·40 |
| | 48 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mUxRestricted:Z |
| | |
| 33 | ····.line·35 | 49 | ····.line·45 |
| 34 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->init()V | 50 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->init()V |
| | |
| 35 | ····return-void | 51 | ····return-void |
| 36 | .end·method | 52 | .end·method |
| | |
| 37 | .method·private·init()V | 53 | .method·private·init()V |
| 38 | ····.locals·1 | 54 | ····.locals·1 |
| | |
| 39 | ····.line·54 | 55 | ····.line·64 |
| 40 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference:I | 56 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference:I |
| | |
| 41 | ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setLayoutResource(I)V | 57 | ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setLayoutResource(I)V |
| | |
| 42 | ····.line·55 | 58 | ····.line·65 |
| 43 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_radio_button_preference_widget:I | 59 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_radio_button_preference_widget:I |
| | |
| 44 | ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V | 60 | ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V |
| | |
| 45 | ····return-void | 61 | ····return-void |
| 46 | .end·method | 62 | .end·method |
| | |
| | |
| 47 | #·virtual·methods | 63 | #·virtual·methods |
| 48 | .method·public·onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V | 64 | .method·public·getOnClickWhileRestrictedListener()Ljava/util/function/Consumer; |
| 49 | ····.locals·1 | 65 | ····.locals·1 |
| | 66 | ····.annotation·system·Ldalvik/annotation/Signature; |
| | 67 | ········value·=·{ |
| | 68 | ············"()", |
| | 69 | ············"Ljava/util/function/Consumer<", |
| | 70 | ············"Landroidx/preference/Preference;", |
| | 71 | ············">;" |
| | 72 | ········} |
| | 73 | ····.end·annotation |
| | |
| | 74 | ····.line·112 |
| | 75 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mRestrictedClickListener:Ljava/util/function/Consumer; |
| | |
| | 76 | ····return-object·v0 |
| | 77 | .end·method |
| | |
| | 78 | .method·public·isUxRestricted()Z |
| | 79 | ····.locals·1 |
| | |
| 50 | ····.line·60 | 80 | ····.line·101 |
| | 81 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mUxRestricted:Z |
| | |
| | 82 | ····return·v0 |
| | 83 | .end·method |
| | |
| | 84 | .method·public·onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V |
| | 85 | ····.locals·2 |
| | |
| | 86 | ····.line·82 |
| 51 | ····invoke-super·{p0,·p1},·Landroidx/preference/Preference;->onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V | 87 | ····invoke-super·{p0,·p1},·Landroidx/preference/Preference;->onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V |
| | |
| 52 | ····.line·62 | 88 | ····.line·84 |
| 53 | ····iget-object·p1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; | 89 | ····iget-object·v0,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; |
| | |
| 54 | ····sget·v0,·Lcom/android/car/ui/R$id;->radio_button:I | 90 | ····sget·v1,·Lcom/android/car/ui/R$id;->radio_button:I |
| | |
| 55 | ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View; | 91 | ····invoke-static·{v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| | |
| 56 | ····move-result-object·p1 | 92 | ····move-result-object·v0 |
| | |
| 57 | ····check-cast·p1,·Landroid/widget/RadioButton; | 93 | ····check-cast·v0,·Landroid/widget/RadioButton; |
| | |
| 58 | ····.line·64 | 94 | ····.line·86 |
| 59 | ····invoke-virtual·{p0},·Landroidx/preference/TwoStatePreference;->isChecked()Z | 95 | ····invoke-virtual·{p0},·Landroidx/preference/TwoStatePreference;->isChecked()Z |
| | |
| | 96 | ····move-result·v1 |
| | |
| | 97 | ····invoke-virtual·{v0,·v1},·Landroid/widget/RadioButton;->setChecked(Z)V |
| | |
| | 98 | ····.line·88 |
| | 99 | ····iget-object·p1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; |
| | |
| | 100 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mUxRestricted:Z |
| | |
| | 101 | ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/ViewUtils;->makeAllViewsUxRestricted(Landroid/view/View;Z)V |
| | |
| | 102 | ····return-void |
| | 103 | .end·method |
| | |
| | 104 | .method·public·performClick()V |
| | 105 | ····.locals·1 |
| | |
| | 106 | ····.line·71 |
| | 107 | ····invoke-virtual·{p0},·Landroidx/preference/Preference;->isEnabled()Z |
| | |
| | 108 | ····move-result·v0 |
| | |
| | 109 | ····if-nez·v0,·:cond_0 |
| | |
| | 110 | ····invoke-virtual·{p0},·Landroidx/preference/Preference;->isSelectable()Z |
| | |
| | 111 | ····move-result·v0 |
| | |
| | 112 | ····if-eqz·v0,·:cond_1 |
| | |
| | 113 | ····:cond_0 |
| | 114 | ····invoke-virtual·{p0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->isUxRestricted()Z |
| | |
| 60 | ····move-result·v0 | 115 | ····move-result·v0 |
| | |
| 61 | ····invoke-virtual·{p1,·v0},·Landroid/widget/RadioButton;->setChecked(Z)V | 116 | ····if-eqz·v0,·:cond_1 |
| | |
| | 117 | ····.line·72 |
| | 118 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mRestrictedClickListener:Ljava/util/function/Consumer; |
| | |
| | 119 | ····if-eqz·v0,·:cond_2 |
| | |
| | 120 | ····.line·73 |
| | 121 | ····invoke-interface·{v0,·p0},·Ljava/util/function/Consumer;->accept(Ljava/lang/Object;)V |
| | |
| | 122 | ····goto·:goto_0 |
| | |
| | 123 | ····.line·76 |
| | 124 | ····:cond_1 |
| | 125 | ····invoke-super·{p0},·Landroidx/preference/Preference;->performClick()V |
| | |
| | 126 | ····:cond_2 |
| | 127 | ····:goto_0 |
| | 128 | ····return-void |
| | 129 | .end·method |
| | |
| | 130 | .method·public·setOnClickWhileRestrictedListener(Ljava/util/function/Consumer;)V |
| | 131 | ····.locals·0 |
| | 132 | ····.annotation·system·Ldalvik/annotation/Signature; |
| | 133 | ········value·=·{ |
| | 134 | ············"(", |
| | 135 | ············"Ljava/util/function/Consumer<", |
| | 136 | ············"Landroidx/preference/Preference;", |
| | 137 | ············">;)V" |
| | 138 | ········} |
| | 139 | ····.end·annotation |
| | |
| | 140 | ····.line·106 |
| | 141 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mRestrictedClickListener:Ljava/util/function/Consumer; |
| | |
| | 142 | ····return-void |
| | 143 | .end·method |
| | |
| | 144 | .method·public·setUxRestricted(Z)V |
| | 145 | ····.locals·1 |
| | |
| | 146 | ····.line·93 |
| | 147 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mUxRestricted:Z |
| | |
| | 148 | ····if-eq·p1,·v0,·:cond_0 |
| | |
| | 149 | ····.line·94 |
| | 150 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mUxRestricted:Z |
| | |
| | 151 | ····.line·95 |
| | 152 | ····invoke-virtual·{p0},·Landroidx/preference/Preference;->notifyChanged()V |
| | |
| | 153 | ····:cond_0 |
| 62 | ····return-void | 154 | ····return-void |
| 63 | .end·method | 155 | .end·method |