| | | |
Offset 3, 16 lines modified | Offset 3, 14 lines modified |
3 | .source·"ListPreferenceFragment.java" | 3 | .source·"ListPreferenceFragment.java" |
| |
4 | #·interfaces | 4 | #·interfaces |
5 | .implements·Lcom/android/car/ui/baselayout/InsetsChangedListener; | 5 | .implements·Lcom/android/car/ui/baselayout/InsetsChangedListener; |
| |
| |
6 | #·instance·fields | 6 | #·instance·fields |
7 | .field·private·final·mOnBackListener:Lcom/android/car/ui/toolbar/Toolbar$OnBackListener; | |
| |
8 | .field·private·mPreference:Landroidx/preference/ListPreference; | 7 | .field·private·mPreference:Landroidx/preference/ListPreference; |
| |
9 | .field·private·mSelectedIndex:I | 8 | .field·private·mSelectedIndex:I |
| |
10 | .field·private·mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; | 9 | .field·private·mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; |
| |
11 | .field·private·mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | 10 | .field·private·mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; |
Offset 26, 299 lines modified | Offset 24, 280 lines modified |
26 | ····invoke-direct·{p0},·Landroidx/fragment/app/Fragment;-><init>()V | 24 | ····invoke-direct·{p0},·Landroidx/fragment/app/Fragment;-><init>()V |
| |
27 | ····const/4·v0,·-0x1 | 25 | ····const/4·v0,·-0x1 |
| |
28 | ····.line·57 | 26 | ····.line·57 |
29 | ····iput·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | 27 | ····iput·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I |
| |
30 | ····.line·58 | |
31 | ····new-instance·v0,·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$KUM9qDPaNdW2nYJyt8LojXF22gM; | |
| |
32 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$KUM9qDPaNdW2nYJyt8LojXF22gM;-><init>(Lcom/android/car/ui/preference/ListPreferenceFragment;)V | |
| |
33 | ····iput-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mOnBackListener:Lcom/android/car/ui/toolbar/Toolbar$OnBackListener; | |
| |
34 | ····return-void | 28 | ····return-void |
35 | .end·method | 29 | .end·method |
| |
36 | .method·private·getListPreference()Landroidx/preference/ListPreference; | 30 | .method·private·getListPreference()Landroidx/preference/ListPreference; |
37 | ····.locals·2 | 31 | ····.locals·2 |
| |
38 | ····.line·183 | 32 | ····.line·181 |
39 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle; | 33 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle; |
| |
40 | ····move-result-object·v0 | 34 | ····move-result-object·v0 |
| |
41 | ····if-eqz·v0,·:cond_3 | 35 | ····if-eqz·v0,·:cond_3 |
| |
42 | ····.line·187 | 36 | ····.line·185 |
43 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle; | 37 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle; |
| |
44 | ····move-result-object·v0 | 38 | ····move-result-object·v0 |
| |
45 | ····const-string·v1,·"key" | 39 | ····const-string·v1,·"key" |
| |
46 | ····invoke-virtual·{v0,·v1},·Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; | 40 | ····invoke-virtual·{v0,·v1},·Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; |
| |
47 | ····move-result-object·v0 | 41 | ····move-result-object·v0 |
| |
48 | ····.line·189 | 42 | ····.line·187 |
49 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getTargetFragment()Landroidx/fragment/app/Fragment; | 43 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getTargetFragment()Landroidx/fragment/app/Fragment; |
| |
50 | ····move-result-object·v1 | 44 | ····move-result-object·v1 |
| |
51 | ····check-cast·v1,·Landroidx/preference/DialogPreference$TargetFragment; | 45 | ····check-cast·v1,·Landroidx/preference/DialogPreference$TargetFragment; |
| |
52 | ····if-eqz·v0,·:cond_2 | 46 | ····if-eqz·v0,·:cond_2 |
| |
53 | ····if-eqz·v1,·:cond_1 | 47 | ····if-eqz·v1,·:cond_1 |
| |
54 | ····.line·202 | 48 | ····.line·200 |
55 | ····invoke-interface·{v1,·v0},·Landroidx/preference/DialogPreference$TargetFragment;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference; | 49 | ····invoke-interface·{v1,·v0},·Landroidx/preference/DialogPreference$TargetFragment;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference; |
| |
56 | ····move-result-object·v0 | 50 | ····move-result-object·v0 |
| |
57 | ····.line·204 | 51 | ····.line·202 |
58 | ····instance-of·v1,·v0,·Landroidx/preference/ListPreference; | 52 | ····instance-of·v1,·v0,·Landroidx/preference/ListPreference; |
| |
59 | ····if-eqz·v1,·:cond_0 | 53 | ····if-eqz·v1,·:cond_0 |
| |
60 | ····.line·210 | 54 | ····.line·208 |
61 | ····check-cast·v0,·Landroidx/preference/ListPreference; | 55 | ····check-cast·v0,·Landroidx/preference/ListPreference; |
| |
62 | ····return-object·v0 | 56 | ····return-object·v0 |
| |
63 | ····.line·205 | 57 | ····.line·203 |
64 | ····:cond_0 | 58 | ····:cond_0 |
65 | ····new-instance·v0,·Ljava/lang/IllegalStateException; | 59 | ····new-instance·v0,·Ljava/lang/IllegalStateException; |
| |
66 | ····const-string·v1,·"Cannot·use·ListPreferenceFragment·with·a·preference·that·is·not·of·type·ListPreference" | 60 | ····const-string·v1,·"Cannot·use·ListPreferenceFragment·with·a·preference·that·is·not·of·type·ListPreference" |
| |
67 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 61 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
68 | ····throw·v0 | 62 | ····throw·v0 |
| |
69 | ····.line·197 | 63 | ····.line·195 |
70 | ····:cond_1 | 64 | ····:cond_1 |
71 | ····new-instance·v0,·Ljava/lang/IllegalStateException; | 65 | ····new-instance·v0,·Ljava/lang/IllegalStateException; |
| |
72 | ····const-string·v1,·"Target·fragment·must·be·registered·before·displaying·ListPreference·screen." | 66 | ····const-string·v1,·"Target·fragment·must·be·registered·before·displaying·ListPreference·screen." |
| |
73 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 67 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
74 | ····throw·v0 | 68 | ····throw·v0 |
| |
75 | ····.line·192 | 69 | ····.line·190 |
76 | ····:cond_2 | 70 | ····:cond_2 |
77 | ····new-instance·v0,·Ljava/lang/IllegalStateException; | 71 | ····new-instance·v0,·Ljava/lang/IllegalStateException; |
| |
78 | ····const-string·v1,·"ListPreference·key·not·found·in·Fragment·arguments" | 72 | ····const-string·v1,·"ListPreference·key·not·found·in·Fragment·arguments" |
| |
79 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 73 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
80 | ····throw·v0 | 74 | ····throw·v0 |
| |
81 | ····.line·184 | 75 | ····.line·182 |
82 | ····:cond_3 | 76 | ····:cond_3 |
83 | ····new-instance·v0,·Ljava/lang/IllegalStateException; | 77 | ····new-instance·v0,·Ljava/lang/IllegalStateException; |
| |
84 | ····const-string·v1,·"Preference·arguments·cannot·be·null" | 78 | ····const-string·v1,·"Preference·arguments·cannot·be·null" |
| |
85 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 79 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
86 | ····throw·v0 | 80 | ····throw·v0 |
87 | .end·method | 81 | .end·method |
| |
88 | .method·private·synthetic·lambda$new$0()Z | 82 | .method·static·synthetic·lambda$onViewCreated$0(Lcom/android/car/ui/recyclerview/CarUiRecyclerView;I)V |
89 | ····.locals·2 | 83 | ····.locals·2 |
| |
90 | ····.line·59 | 84 | ····.line·97 |
91 | ····iget·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | |
| |
92 | ····if-ltz·v0,·:cond_0 | |
| |
93 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | |
| |
94 | ····if-eqz·v0,·:cond_0 | |
| |
95 | ····.line·60 | |
96 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getEntryValues()[Ljava/lang/CharSequence; | |
| |
97 | ····move-result-object·v0 | |
| |
98 | ····iget·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | |
| |
99 | ····aget-object·v0,·v0,·v1 | |
| |
100 | ····invoke-interface·{v0},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; | |
| |
101 | ····move-result-object·v0 | |
| |
102 | ····.line·62 | |
103 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | |
| |
104 | ····invoke-virtual·{v1,·v0},·Landroidx/preference/Preference;->callChangeListener(Ljava/lang/Object;)Z | |
| |
105 | ····move-result·v1 | |
| |
106 | ····if-eqz·v1,·:cond_0 | |
| |
107 | ····.line·63 | |
108 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | |
| |
109 | ····invoke-virtual·{v1,·v0},·Landroidx/preference/ListPreference;->setValue(Ljava/lang/String;)V | |
| |
110 | ····:cond_0 | |
111 | ····const/4·v0,·0x0 | |
| |
112 | ····return·v0 | |
113 | .end·method | |
| |
114 | .method·static·synthetic·lambda$onViewCreated$1(Lcom/android/car/ui/recyclerview/CarUiRecyclerView;I)V | |
115 | ····.locals·2 | |
| |
116 | ····.line·108 | |
117 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getPaddingTop()I | 85 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getPaddingTop()I |
| |
118 | ····move-result·v0 | 86 | ····move-result·v0 |
| |
119 | ····if-ne·v0,·p1,·:cond_0 | 87 | ····if-ne·v0,·p1,·:cond_0 |
| |
120 | ····return-void | 88 | ····return-void |
| |
121 | ····.line·112 | 89 | ····.line·101 |
122 | ····:cond_0 | 90 | ····:cond_0 |
123 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getPaddingTop()I | 91 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getPaddingTop()I |
| |
124 | ····move-result·v0 | 92 | ····move-result·v0 |
| |
125 | ····const/4·v1,·0x0 | 93 | ····const/4·v1,·0x0 |
| |
126 | ····.line·113 | 94 | ····.line·102 |
127 | ····invoke-virtual·{p0,·v1,·p1,·v1,·v1},·Lcom/android/car/ui/recyclerview/CarUiRecyclerView;->setPadding(IIII)V | 95 | ····invoke-virtual·{p0,·v1,·p1,·v1,·v1},·Lcom/android/car/ui/recyclerview/CarUiRecyclerView;->setPadding(IIII)V |
| |
128 | ····sub-int/2addr·v0,·p1 | 96 | ····sub-int/2addr·v0,·p1 |
| |
129 | ····.line·114 | 97 | ····.line·103 |
130 | ····invoke-virtual·{p0,·v1,·v0},·Landroidx/recyclerview/widget/RecyclerView;->scrollBy(II)V | 98 | ····invoke-virtual·{p0,·v1,·v0},·Landroidx/recyclerview/widget/RecyclerView;->scrollBy(II)V |
| |
131 | ····return-void | 99 | ····return-void |
132 | .end·method | 100 | .end·method |
| |
133 | .method·private·synthetic·lambda$onViewCreated$2(Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;Lcom/android/car/ui/recyclerview/CarUiContentListItem;Z)V | 101 | .method·private·synthetic·lambda$onViewCreated$1(Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;Lcom/android/car/ui/recyclerview/CarUiContentListItem;Z)V |
134 | ····.locals·1 | 102 | ····.locals·1 |
| |
135 | ····.line·152 | 103 | ····.line·141 |
136 | ····iget-object·p4,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; | 104 | ····iget-object·p4,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; |
| |
137 | ····if-eqz·p4,·:cond_0 | 105 | ····if-eqz·p4,·:cond_0 |
| |
138 | ····const/4·v0,·0x0 | 106 | ····const/4·v0,·0x0 |
| |
139 | ····.line·153 | 107 | ····.line·142 |
140 | ····invoke-virtual·{p4,·v0},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setChecked(Z)V | 108 | ····invoke-virtual·{p4,·v0},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setChecked(Z)V |
| |
141 | ····.line·154 | 109 | ····.line·143 |
142 | ····iget-object·p4,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; | 110 | ····iget-object·p4,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; |
| |
143 | ····invoke-interface·{p2,·p4},·Ljava/util/List;->indexOf(Ljava/lang/Object;)I | 111 | ····invoke-interface·{p2,·p4},·Ljava/util/List;->indexOf(Ljava/lang/Object;)I |
| |
144 | ····move-result·p4 | 112 | ····move-result·p4 |
| |
145 | ····invoke-virtual·{p1,·p4},·Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyItemChanged(I)V | 113 | ····invoke-virtual·{p1,·p4},·Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyItemChanged(I)V |
| |
146 | ····.line·156 | 114 | ····.line·145 |
147 | ····:cond_0 | 115 | ····:cond_0 |
148 | ····iput-object·p3,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; | 116 | ····iput-object·p3,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; |
| |
149 | ····.line·157 | 117 | ····.line·146 |
150 | ····invoke-interface·{p2,·p3},·Ljava/util/List;->indexOf(Ljava/lang/Object;)I | 118 | ····invoke-interface·{p2,·p3},·Ljava/util/List;->indexOf(Ljava/lang/Object;)I |
| |
151 | ····move-result·p1 | 119 | ····move-result·p1 |
| |
152 | ····iput·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | 120 | ····iput·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I |
| |
153 | ····return-void | 121 | ····return-void |
154 | .end·method | 122 | .end·method |
| |
155 | .method·static·newInstance(Ljava/lang/String;)Lcom/android/car/ui/preference/ListPreferenceFragment; | 123 | .method·static·newInstance(Ljava/lang/String;)Lcom/android/car/ui/preference/ListPreferenceFragment; |
156 | ····.locals·3 | 124 | ····.locals·3 |
| |
157 | ····.line·76 | 125 | ····.line·65 |
158 | ····new-instance·v0,·Lcom/android/car/ui/preference/ListPreferenceFragment; | 126 | ····new-instance·v0,·Lcom/android/car/ui/preference/ListPreferenceFragment; |
| |
159 | ····invoke-direct·{v0},·Lcom/android/car/ui/preference/ListPreferenceFragment;-><init>()V | 127 | ····invoke-direct·{v0},·Lcom/android/car/ui/preference/ListPreferenceFragment;-><init>()V |
| |
160 | ····.line·77 | 128 | ····.line·66 |
161 | ····new-instance·v1,·Landroid/os/Bundle; | 129 | ····new-instance·v1,·Landroid/os/Bundle; |
| |
162 | ····const/4·v2,·0x1 | 130 | ····const/4·v2,·0x1 |
| |
163 | ····invoke-direct·{v1,·v2},·Landroid/os/Bundle;-><init>(I)V | 131 | ····invoke-direct·{v1,·v2},·Landroid/os/Bundle;-><init>(I)V |
| |
164 | ····const-string·v2,·"key" | 132 | ····const-string·v2,·"key" |
| |
165 | ····.line·78 | 133 | ····.line·67 |
166 | ····invoke-virtual·{v1,·v2,·p0},·Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V | 134 | ····invoke-virtual·{v1,·v2,·p0},·Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V |
| |
167 | ····.line·79 | 135 | ····.line·68 |
168 | ····invoke-virtual·{v0,·v1},·Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V | 136 | ····invoke-virtual·{v0,·v1},·Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V |
| |
169 | ····return-object·v0 | 137 | ····return-object·v0 |
170 | .end·method | 138 | .end·method |
| |
| 139 | .method·private·updatePreference()V |
| 140 | ····.locals·2 |
| |
171 | #·virtual·methods | 141 | ····.line·171 |
172 | .method·public·synthetic·lambda$new$0$ListPreferenceFragment()Z | 142 | ····iget·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I |
173 | ····.locals·1 | |
| 143 | ····if-ltz·v0,·:cond_0 |
| |
174 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/ListPreferenceFragment;->lambda$new$0()Z | 144 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
175 | ····move-result·v0 | 145 | ····if-eqz·v0,·:cond_0 |
| |
| 146 | ····.line·172 |
| 147 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getEntryValues()[Ljava/lang/CharSequence; |
| |
| 148 | ····move-result-object·v0 |
| |
176 | ····return·v0 | 149 | ····iget·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I |
| |
| 150 | ····aget-object·v0,·v0,·v1 |
| |
| 151 | ····invoke-interface·{v0},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; |
| |
| 152 | ····move-result-object·v0 |
| |
| 153 | ····.line·174 |
| 154 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
| 155 | ····invoke-virtual·{v1,·v0},·Landroidx/preference/Preference;->callChangeListener(Ljava/lang/Object;)Z |
| |
| 156 | ····move-result·v1 |
| |
| 157 | ····if-eqz·v1,·:cond_0 |
| |
| 158 | ····.line·175 |
| 159 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
| 160 | ····invoke-virtual·{v1,·v0},·Landroidx/preference/ListPreference;->setValue(Ljava/lang/String;)V |
| |
| 161 | ····:cond_0 |
| 162 | ····return-void |
177 | .end·method | 163 | .end·method |
| |
178 | .method·public·synthetic·lambda$onViewCreated$2$ListPreferenceFragment(Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;Lcom/android/car/ui/recyclerview/CarUiContentListItem;Z)V | |
| 164 | #·virtual·methods |
| 165 | .method·public·synthetic·lambda$onViewCreated$1$ListPreferenceFragment(Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;Lcom/android/car/ui/recyclerview/CarUiContentListItem;Z)V |
179 | ····.locals·0 | 166 | ····.locals·0 |
| |
180 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Lcom/android/car/ui/preference/ListPreferenceFragment;->lambda$onViewCreated$2(Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;Lcom/android/car/ui/recyclerview/CarUiContentListItem;Z)V | 167 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Lcom/android/car/ui/preference/ListPreferenceFragment;->lambda$onViewCreated$1(Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;Lcom/android/car/ui/recyclerview/CarUiContentListItem;Z)V |
| |
181 | ····return-void | 168 | ····return-void |
182 | .end·method | 169 | .end·method |
| |
183 | .method·public·onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V | 170 | .method·public·onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V |
184 | ····.locals·5 | 171 | ····.locals·5 |
| |
185 | ····.line·215 | 172 | ····.line·213 |
186 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->requireView()Landroid/view/View; | 173 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->requireView()Landroid/view/View; |
| |
187 | ····move-result-object·v0 | 174 | ····move-result-object·v0 |
| |
188 | ····.line·216 | 175 | ····.line·214 |
189 | ····sget·v1,·Lcom/android/car/ui/R$id;->list:I | 176 | ····sget·v1,·Lcom/android/car/ui/R$id;->list:I |
| |
190 | ····invoke-static·{v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 177 | ····invoke-static·{v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
191 | ····move-result-object·v1 | 178 | ····move-result-object·v1 |
| |
192 | ····.line·217 | 179 | ····.line·215 |
193 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getTop()I | 180 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getTop()I |
| |
194 | ····move-result·v2 | 181 | ····move-result·v2 |
| |
195 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getBottom()I | 182 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getBottom()I |
| |
196 | ····move-result·v3 | 183 | ····move-result·v3 |
| |
197 | ····const/4·v4,·0x0 | 184 | ····const/4·v4,·0x0 |
| |
198 | ····invoke-virtual·{v1,·v4,·v2,·v4,·v3},·Landroid/view/View;->setPadding(IIII)V | 185 | ····invoke-virtual·{v1,·v4,·v2,·v4,·v3},·Landroid/view/View;->setPadding(IIII)V |
| |
199 | ····.line·218 | 186 | ····.line·216 |
200 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getLeft()I | 187 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getLeft()I |
| |
201 | ····move-result·v1 | 188 | ····move-result·v1 |
| |
202 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getRight()I | 189 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getRight()I |
| |
203 | ····move-result·p1 | 190 | ····move-result·p1 |
Offset 327, 293 lines modified | Offset 306, 282 lines modified |
| |
327 | ····return-void | 306 | ····return-void |
328 | .end·method | 307 | .end·method |
| |
329 | .method·public·onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View; | 308 | .method·public·onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View; |
330 | ····.locals·1 | 309 | ····.locals·1 |
| |
331 | ····.line·88 | 310 | ····.line·77 |
332 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity; | 311 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity; |
| |
333 | ····move-result-object·p3 | 312 | ····move-result-object·p3 |
| |
334 | ····invoke-static·{p3},·Lcom/android/car/ui/core/CarUi;->getToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; | 313 | ····invoke-static·{p3},·Lcom/android/car/ui/core/CarUi;->getToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; |
| |
335 | ····move-result-object·p3 | 314 | ····move-result-object·p3 |
| |
336 | ····const/4·v0,·0x0 | 315 | ····const/4·v0,·0x0 |
| |
337 | ····if-nez·p3,·:cond_0 | 316 | ····if-nez·p3,·:cond_0 |
| |
338 | ····.line·89 | 317 | ····.line·78 |
339 | ····sget·p3,·Lcom/android/car/ui/R$layout;->car_ui_list_preference_with_toolbar:I | 318 | ····sget·p3,·Lcom/android/car/ui/R$layout;->car_ui_list_preference_with_toolbar:I |
| |
340 | ····invoke-virtual·{p1,·p3,·p2,·v0},·Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; | 319 | ····invoke-virtual·{p1,·p3,·p2,·v0},·Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; |
| |
341 | ····move-result-object·p1 | 320 | ····move-result-object·p1 |
| |
342 | ····return-object·p1 | 321 | ····return-object·p1 |
| |
343 | ····.line·91 | 322 | ····.line·80 |
344 | ····:cond_0 | 323 | ····:cond_0 |
345 | ····sget·p3,·Lcom/android/car/ui/R$layout;->car_ui_list_preference:I | 324 | ····sget·p3,·Lcom/android/car/ui/R$layout;->car_ui_list_preference:I |
| |
346 | ····invoke-virtual·{p1,·p3,·p2,·v0},·Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; | 325 | ····invoke-virtual·{p1,·p3,·p2,·v0},·Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; |
| |
347 | ····move-result-object·p1 | 326 | ····move-result-object·p1 |
| |
348 | ····return-object·p1 | 327 | ····return-object·p1 |
349 | .end·method | 328 | .end·method |
| |
350 | .method·public·onStart()V | 329 | .method·public·onStart()V |
351 | ····.locals·2 | 330 | ····.locals·1 |
| |
352 | ····.line·168 | 331 | ····.line·157 |
353 | ····invoke-super·{p0},·Landroidx/fragment/app/Fragment;->onStart()V | 332 | ····invoke-super·{p0},·Landroidx/fragment/app/Fragment;->onStart()V |
| |
354 | ····.line·169 | 333 | ····.line·158 |
355 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | |
| |
356 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mOnBackListener:Lcom/android/car/ui/toolbar/Toolbar$OnBackListener; | |
| |
357 | ····invoke-interface·{v0,·v1},·Lcom/android/car/ui/toolbar/ToolbarController;->registerOnBackListener(Lcom/android/car/ui/toolbar/Toolbar$OnBackListener;)V | |
| |
358 | ····.line·170 | |
359 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity; | 334 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity; |
| |
360 | ····move-result-object·v0 | 335 | ····move-result-object·v0 |
| |
361 | ····invoke-static·{v0},·Lcom/android/car/ui/core/CarUi;->getInsets(Landroid/app/Activity;)Lcom/android/car/ui/baselayout/Insets; | 336 | ····invoke-static·{v0},·Lcom/android/car/ui/core/CarUi;->getInsets(Landroid/app/Activity;)Lcom/android/car/ui/baselayout/Insets; |
| |
362 | ····move-result-object·v0 | 337 | ····move-result-object·v0 |
| |
363 | ····if-eqz·v0,·:cond_0 | 338 | ····if-eqz·v0,·:cond_0 |
| |
364 | ····.line·172 | 339 | ····.line·160 |
365 | ····invoke-virtual·{p0,·v0},·Lcom/android/car/ui/preference/ListPreferenceFragment;->onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V | 340 | ····invoke-virtual·{p0,·v0},·Lcom/android/car/ui/preference/ListPreferenceFragment;->onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V |
| |
366 | ····:cond_0 | 341 | ····:cond_0 |
367 | ····return-void | 342 | ····return-void |
368 | .end·method | 343 | .end·method |
| |
369 | .method·public·onStop()V | 344 | .method·public·onStop()V |
370 | ····.locals·2 | 345 | ····.locals·0 |
| |
371 | ····.line·178 | 346 | ····.line·166 |
372 | ····invoke-super·{p0},·Landroidx/fragment/app/Fragment;->onStop()V | 347 | ····invoke-super·{p0},·Landroidx/fragment/app/Fragment;->onStop()V |
| |
373 | ····.line·179 | 348 | ····.line·167 |
374 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | 349 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/ListPreferenceFragment;->updatePreference()V |
| |
375 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mOnBackListener:Lcom/android/car/ui/toolbar/Toolbar$OnBackListener; | |
| |
376 | ····invoke-interface·{v0,·v1},·Lcom/android/car/ui/toolbar/ToolbarController;->unregisterOnBackListener(Lcom/android/car/ui/toolbar/Toolbar$OnBackListener;)Z | |
| |
377 | ····return-void | 350 | ····return-void |
378 | .end·method | 351 | .end·method |
| |
379 | .method·public·onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V | 352 | .method·public·onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V |
380 | ····.locals·6 | 353 | ····.locals·6 |
| |
381 | ····.line·97 | 354 | ····.line·86 |
382 | ····invoke-super·{p0,·p1,·p2},·Landroidx/fragment/app/Fragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V | 355 | ····invoke-super·{p0,·p1,·p2},·Landroidx/fragment/app/Fragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V |
| |
383 | ····.line·98 | 356 | ····.line·87 |
384 | ····sget·p2,·Lcom/android/car/ui/R$id;->list:I | 357 | ····sget·p2,·Lcom/android/car/ui/R$id;->list:I |
| |
385 | ····invoke-static·{p1,·p2},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 358 | ····invoke-static·{p1,·p2},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
386 | ····move-result-object·p2 | 359 | ····move-result-object·p2 |
| |
387 | ····check-cast·p2,·Lcom/android/car/ui/recyclerview/CarUiRecyclerView; | 360 | ····check-cast·p2,·Lcom/android/car/ui/recyclerview/CarUiRecyclerView; |
| |
388 | ····.line·99 | 361 | ····.line·88 |
389 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity; | 362 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity; |
| |
390 | ····move-result-object·v0 | 363 | ····move-result-object·v0 |
| |
391 | ····invoke-static·{v0},·Lcom/android/car/ui/core/CarUi;->getToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; | 364 | ····invoke-static·{v0},·Lcom/android/car/ui/core/CarUi;->getToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; |
| |
392 | ····move-result-object·v0 | 365 | ····move-result-object·v0 |
| |
393 | ····iput-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | 366 | ····iput-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; |
| |
394 | ····const/4·v1,·0x0 | 367 | ····const/4·v1,·0x0 |
| |
395 | ····if-nez·v0,·:cond_0 | 368 | ····if-nez·v0,·:cond_0 |
| |
396 | ····.line·103 | 369 | ····.line·92 |
397 | ····sget·v0,·Lcom/android/car/ui/R$id;->toolbar:I | 370 | ····sget·v0,·Lcom/android/car/ui/R$id;->toolbar:I |
| |
398 | ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 371 | ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
399 | ····move-result-object·p1 | 372 | ····move-result-object·p1 |
| |
400 | ····check-cast·p1,·Lcom/android/car/ui/toolbar/Toolbar; | 373 | ····check-cast·p1,·Lcom/android/car/ui/toolbar/Toolbar; |
| |
401 | ····.line·104 | 374 | ····.line·93 |
402 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | 375 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; |
| |
403 | ····.line·106 | 376 | ····.line·95 |
404 | ····invoke-virtual·{p1},·Landroid/widget/FrameLayout;->getHeight()I | 377 | ····invoke-virtual·{p1},·Landroid/widget/FrameLayout;->getHeight()I |
| |
405 | ····move-result·v0 | 378 | ····move-result·v0 |
| |
406 | ····invoke-virtual·{p2,·v1,·v0,·v1,·v1},·Lcom/android/car/ui/recyclerview/CarUiRecyclerView;->setPadding(IIII)V | 379 | ····invoke-virtual·{p2,·v1,·v0,·v1,·v1},·Lcom/android/car/ui/recyclerview/CarUiRecyclerView;->setPadding(IIII)V |
| |
407 | ····.line·107 | 380 | ····.line·96 |
408 | ····new-instance·v0,·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$-4S-HRzdiD6u7y7p3fNDT8ZstLg; | 381 | ····new-instance·v0,·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$f_SO-fefSO31C9MQPhzIiE35o-M; |
| |
409 | ····invoke-direct·{v0,·p2},·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$-4S-HRzdiD6u7y7p3fNDT8ZstLg;-><init>(Lcom/android/car/ui/recyclerview/CarUiRecyclerView;)V | 382 | ····invoke-direct·{v0,·p2},·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$f_SO-fefSO31C9MQPhzIiE35o-M;-><init>(Lcom/android/car/ui/recyclerview/CarUiRecyclerView;)V |
| |
410 | ····invoke-virtual·{p1,·v0},·Lcom/android/car/ui/toolbar/Toolbar;->registerToolbarHeightChangeListener(Lcom/android/car/ui/toolbar/Toolbar$OnHeightChangedListener;)V | 383 | ····invoke-virtual·{p1,·v0},·Lcom/android/car/ui/toolbar/Toolbar;->registerToolbarHeightChangeListener(Lcom/android/car/ui/toolbar/Toolbar$OnHeightChangedListener;)V |
| |
411 | ····.line·118 | 384 | ····.line·107 |
412 | ····:cond_0 | 385 | ····:cond_0 |
413 | ····invoke-virtual·{p2,·v1},·Landroidx/recyclerview/widget/RecyclerView;->setClipToPadding(Z)V | 386 | ····invoke-virtual·{p2,·v1},·Landroidx/recyclerview/widget/RecyclerView;->setClipToPadding(Z)V |
| |
414 | ····.line·119 | 387 | ····.line·108 |
415 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/ListPreferenceFragment;->getListPreference()Landroidx/preference/ListPreference; | 388 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/ListPreferenceFragment;->getListPreference()Landroidx/preference/ListPreference; |
| |
416 | ····move-result-object·p1 | 389 | ····move-result-object·p1 |
| |
417 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | 390 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
418 | ····.line·120 | 391 | ····.line·109 |
419 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | 392 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; |
| |
420 | ····invoke-virtual·{p1},·Landroidx/preference/Preference;->getTitle()Ljava/lang/CharSequence; | 393 | ····invoke-virtual·{p1},·Landroidx/preference/Preference;->getTitle()Ljava/lang/CharSequence; |
| |
421 | ····move-result-object·p1 | 394 | ····move-result-object·p1 |
| |
422 | ····invoke-interface·{v0,·p1},·Lcom/android/car/ui/toolbar/ToolbarController;->setTitle(Ljava/lang/CharSequence;)V | 395 | ····invoke-interface·{v0,·p1},·Lcom/android/car/ui/toolbar/ToolbarController;->setTitle(Ljava/lang/CharSequence;)V |
| |
423 | ····.line·121 | 396 | ····.line·110 |
424 | ····iget-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | 397 | ····iget-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; |
| |
425 | ····sget-object·v0,·Lcom/android/car/ui/toolbar/Toolbar$State;->SUBPAGE:Lcom/android/car/ui/toolbar/Toolbar$State; | 398 | ····sget-object·v0,·Lcom/android/car/ui/toolbar/Toolbar$State;->SUBPAGE:Lcom/android/car/ui/toolbar/Toolbar$State; |
| |
426 | ····invoke-interface·{p1,·v0},·Lcom/android/car/ui/toolbar/ToolbarController;->setState(Lcom/android/car/ui/toolbar/Toolbar$State;)V | 399 | ····invoke-interface·{p1,·v0},·Lcom/android/car/ui/toolbar/ToolbarController;->setState(Lcom/android/car/ui/toolbar/Toolbar$State;)V |
| |
427 | ····.line·123 | 400 | ····.line·112 |
428 | ····iget-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | 401 | ····iget-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
429 | ····invoke-virtual·{p1},·Landroidx/preference/ListPreference;->getEntries()[Ljava/lang/CharSequence; | 402 | ····invoke-virtual·{p1},·Landroidx/preference/ListPreference;->getEntries()[Ljava/lang/CharSequence; |
| |
430 | ····move-result-object·p1 | 403 | ····move-result-object·p1 |
| |
431 | ····.line·124 | 404 | ····.line·113 |
432 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | 405 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
433 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getEntryValues()[Ljava/lang/CharSequence; | 406 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getEntryValues()[Ljava/lang/CharSequence; |
| |
434 | ····move-result-object·v0 | 407 | ····move-result-object·v0 |
| |
435 | ····if-eqz·p1,·:cond_4 | 408 | ····if-eqz·p1,·:cond_4 |
| |
436 | ····if-eqz·v0,·:cond_4 | 409 | ····if-eqz·v0,·:cond_4 |
| |
437 | ····.line·131 | 410 | ····.line·120 |
438 | ····array-length·v2,·p1 | 411 | ····array-length·v2,·p1 |
| |
439 | ····array-length·v0,·v0 | 412 | ····array-length·v0,·v0 |
| |
440 | ····if-ne·v2,·v0,·:cond_3 | 413 | ····if-ne·v2,·v0,·:cond_3 |
| |
441 | ····.line·136 | 414 | ····.line·125 |
442 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | 415 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
443 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getValue()Ljava/lang/String; | 416 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getValue()Ljava/lang/String; |
| |
444 | ····move-result-object·v2 | 417 | ····move-result-object·v2 |
| |
445 | ····invoke-virtual·{v0,·v2},·Landroidx/preference/ListPreference;->findIndexOfValue(Ljava/lang/String;)I | 418 | ····invoke-virtual·{v0,·v2},·Landroidx/preference/ListPreference;->findIndexOfValue(Ljava/lang/String;)I |
| |
446 | ····move-result·v0 | 419 | ····move-result·v0 |
| |
447 | ····iput·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | 420 | ····iput·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I |
| |
448 | ····.line·137 | 421 | ····.line·126 |
449 | ····new-instance·v0,·Ljava/util/ArrayList; | 422 | ····new-instance·v0,·Ljava/util/ArrayList; |
| |
450 | ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V | 423 | ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V |
| |
451 | ····.line·138 | 424 | ····.line·127 |
452 | ····new-instance·v2,·Lcom/android/car/ui/recyclerview/CarUiListItemAdapter; | 425 | ····new-instance·v2,·Lcom/android/car/ui/recyclerview/CarUiListItemAdapter; |
| |
453 | ····invoke-direct·{v2,·v0},·Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;-><init>(Ljava/util/List;)V | 426 | ····invoke-direct·{v2,·v0},·Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;-><init>(Ljava/util/List;)V |
| |
454 | ····.line·140 | 427 | ····.line·129 |
455 | ····:goto_0 | 428 | ····:goto_0 |
456 | ····array-length·v3,·p1 | 429 | ····array-length·v3,·p1 |
| |
457 | ····if-ge·v1,·v3,·:cond_2 | 430 | ····if-ge·v1,·v3,·:cond_2 |
| |
458 | ····.line·141 | 431 | ····.line·130 |
459 | ····aget-object·v3,·p1,·v1 | 432 | ····aget-object·v3,·p1,·v1 |
| |
460 | ····invoke-interface·{v3},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; | 433 | ····invoke-interface·{v3},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; |
| |
461 | ····move-result-object·v3 | 434 | ····move-result-object·v3 |
| |
462 | ····.line·142 | 435 | ····.line·131 |
463 | ····new-instance·v4,·Lcom/android/car/ui/recyclerview/CarUiContentListItem; | 436 | ····new-instance·v4,·Lcom/android/car/ui/recyclerview/CarUiContentListItem; |
| |
464 | ····sget-object·v5,·Lcom/android/car/ui/recyclerview/CarUiContentListItem$Action;->RADIO_BUTTON:Lcom/android/car/ui/recyclerview/CarUiContentListItem$Action; | 437 | ····sget-object·v5,·Lcom/android/car/ui/recyclerview/CarUiContentListItem$Action;->RADIO_BUTTON:Lcom/android/car/ui/recyclerview/CarUiContentListItem$Action; |
| |
465 | ····invoke-direct·{v4,·v5},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;-><init>(Lcom/android/car/ui/recyclerview/CarUiContentListItem$Action;)V | 438 | ····invoke-direct·{v4,·v5},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;-><init>(Lcom/android/car/ui/recyclerview/CarUiContentListItem$Action;)V |
| |
466 | ····.line·144 | 439 | ····.line·133 |
467 | ····invoke-virtual·{v4,·v3},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setTitle(Ljava/lang/CharSequence;)V | 440 | ····invoke-virtual·{v4,·v3},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setTitle(Ljava/lang/CharSequence;)V |
| |
468 | ····.line·146 | 441 | ····.line·135 |
469 | ····iget·v3,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | 442 | ····iget·v3,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I |
| |
470 | ····if-ne·v1,·v3,·:cond_1 | 443 | ····if-ne·v1,·v3,·:cond_1 |
| |
471 | ····const/4·v3,·0x1 | 444 | ····const/4·v3,·0x1 |
| |
472 | ····.line·147 | 445 | ····.line·136 |
473 | ····invoke-virtual·{v4,·v3},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setChecked(Z)V | 446 | ····invoke-virtual·{v4,·v3},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setChecked(Z)V |
| |
474 | ····.line·148 | 447 | ····.line·137 |
475 | ····iput-object·v4,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; | 448 | ····iput-object·v4,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; |
| |
476 | ····.line·151 | 449 | ····.line·140 |
477 | ····:cond_1 | 450 | ····:cond_1 |
478 | ····new-instance·v3,·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$_qX72ML5m90BsqFfxmBxcpJVqoA; | 451 | ····new-instance·v3,·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$rJYZvC0kZuHGeJHuQaBshexRSFM; |
| |
479 | ····invoke-direct·{v3,·p0,·v2,·v0},·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$_qX72ML5m90BsqFfxmBxcpJVqoA;-><init>(Lcom/android/car/ui/preference/ListPreferenceFragment;Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;)V | 452 | ····invoke-direct·{v3,·p0,·v2,·v0},·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$rJYZvC0kZuHGeJHuQaBshexRSFM;-><init>(Lcom/android/car/ui/preference/ListPreferenceFragment;Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;)V |
| |
480 | ····invoke-virtual·{v4,·v3},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setOnCheckedChangeListener(Lcom/android/car/ui/recyclerview/CarUiContentListItem$OnCheckedChangeListener;)V | 453 | ····invoke-virtual·{v4,·v3},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setOnCheckedChangeListener(Lcom/android/car/ui/recyclerview/CarUiContentListItem$OnCheckedChangeListener;)V |
| |
481 | ····.line·160 | 454 | ····.line·149 |
482 | ····invoke-interface·{v0,·v4},·Ljava/util/List;->add(Ljava/lang/Object;)Z | 455 | ····invoke-interface·{v0,·v4},·Ljava/util/List;->add(Ljava/lang/Object;)Z |
| |
483 | ····add-int/lit8·v1,·v1,·0x1 | 456 | ····add-int/lit8·v1,·v1,·0x1 |
| |
484 | ····goto·:goto_0 | 457 | ····goto·:goto_0 |
| |
485 | ····.line·163 | 458 | ····.line·152 |
486 | ····:cond_2 | 459 | ····:cond_2 |
487 | ····invoke-virtual·{p2,·v2},·Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V | 460 | ····invoke-virtual·{p2,·v2},·Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V |
| |
488 | ····return-void | 461 | ····return-void |
| |
489 | ····.line·132 | 462 | ····.line·121 |
490 | ····:cond_3 | 463 | ····:cond_3 |
491 | ····new-instance·p1,·Ljava/lang/IllegalStateException; | 464 | ····new-instance·p1,·Ljava/lang/IllegalStateException; |
| |
492 | ····const-string·p2,·"ListPreference·entries·array·length·does·not·match·entryValues·array·length." | 465 | ····const-string·p2,·"ListPreference·entries·array·length·does·not·match·entryValues·array·length." |
| |
493 | ····invoke-direct·{p1,·p2},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 466 | ····invoke-direct·{p1,·p2},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
494 | ····throw·p1 | 467 | ····throw·p1 |
| |
495 | ····.line·127 | 468 | ····.line·116 |
496 | ····:cond_4 | 469 | ····:cond_4 |
497 | ····new-instance·p1,·Ljava/lang/IllegalStateException; | 470 | ····new-instance·p1,·Ljava/lang/IllegalStateException; |
| |
498 | ····const-string·p2,·"ListPreference·requires·an·entries·array·and·an·entryValues·array." | 471 | ····const-string·p2,·"ListPreference·requires·an·entries·array·and·an·entryValues·array." |
| |
499 | ····invoke-direct·{p1,·p2},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 472 | ····invoke-direct·{p1,·p2},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |