| | | |
Offset 2, 619 lines modified | Offset 2, 656 lines modified |
2 | .super·Landroidx/fragment/app/Fragment; | 2 | .super·Landroidx/fragment/app/Fragment; |
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 | #·static·fields |
| 7 | .field·private·static·final·ARG_FULLSCREEN:Ljava/lang/String;·=·"fullscreen" |
| |
| |
6 | #·instance·fields | 8 | #·instance·fields |
7 | .field·private·final·mOnBackListener:Lcom/android/car/ui/toolbar/Toolbar$OnBackListener; | 9 | .field·private·mFullScreen:Z |
| |
8 | .field·private·mPreference:Landroidx/preference/ListPreference; | 10 | .field·private·mPreference:Landroidx/preference/ListPreference; |
| |
9 | .field·private·mSelectedIndex:I | 11 | .field·private·mSelectedIndex:I |
| |
10 | .field·private·mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; | 12 | .field·private·mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; |
| |
11 | .field·private·mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | |
| |
| |
12 | #·direct·methods | 13 | #·direct·methods |
13 | .method·public·constructor·<init>()V | 14 | .method·public·constructor·<init>()V |
14 | ····.locals·1 | 15 | ····.locals·1 |
| |
15 | ····.line·52 | 16 | ····.line·53 |
16 | ····invoke-direct·{p0},·Landroidx/fragment/app/Fragment;-><init>()V | 17 | ····invoke-direct·{p0},·Landroidx/fragment/app/Fragment;-><init>()V |
| |
17 | ····const/4·v0,·-0x1 | 18 | ····const/4·v0,·-0x1 |
| |
18 | ····.line·57 | 19 | ····.line·59 |
19 | ····iput·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | 20 | ····iput·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I |
| |
20 | ····.line·58 | |
21 | ····new-instance·v0,·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$KUM9qDPaNdW2nYJyt8LojXF22gM; | |
| |
22 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$KUM9qDPaNdW2nYJyt8LojXF22gM;-><init>(Lcom/android/car/ui/preference/ListPreferenceFragment;)V | |
| |
23 | ····iput-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mOnBackListener:Lcom/android/car/ui/toolbar/Toolbar$OnBackListener; | |
| |
24 | ····return-void | 21 | ····return-void |
25 | .end·method | 22 | .end·method |
| |
26 | .method·private·getListPreference()Landroidx/preference/ListPreference; | 23 | .method·private·getListPreference()Landroidx/preference/ListPreference; |
27 | ····.locals·2 | 24 | ····.locals·2 |
| |
28 | ····.line·183 | 25 | ····.line·196 |
29 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle; | 26 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->requireArguments()Landroid/os/Bundle; |
| |
30 | ····move-result-object·v0 | |
| |
31 | ····if-eqz·v0,·:cond_3 | |
| |
32 | ····.line·187 | |
33 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle; | |
| |
34 | ····move-result-object·v0 | 27 | ····move-result-object·v0 |
| |
35 | ····const-string·v1,·"key" | 28 | ····const-string·v1,·"key" |
| |
36 | ····invoke-virtual·{v0,·v1},·Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; | 29 | ····invoke-virtual·{v0,·v1},·Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; |
| |
37 | ····move-result-object·v0 | 30 | ····move-result-object·v0 |
| |
38 | ····.line·189 | 31 | ····.line·198 |
39 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getTargetFragment()Landroidx/fragment/app/Fragment; | 32 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getTargetFragment()Landroidx/fragment/app/Fragment; |
| |
40 | ····move-result-object·v1 | 33 | ····move-result-object·v1 |
| |
41 | ····check-cast·v1,·Landroidx/preference/DialogPreference$TargetFragment; | 34 | ····check-cast·v1,·Landroidx/preference/DialogPreference$TargetFragment; |
| |
42 | ····if-eqz·v0,·:cond_2 | 35 | ····if-eqz·v0,·:cond_2 |
| |
43 | ····if-eqz·v1,·:cond_1 | 36 | ····if-eqz·v1,·:cond_1 |
| |
44 | ····.line·202 | 37 | ····.line·211 |
45 | ····invoke-interface·{v1,·v0},·Landroidx/preference/DialogPreference$TargetFragment;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference; | 38 | ····invoke-interface·{v1,·v0},·Landroidx/preference/DialogPreference$TargetFragment;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference; |
| |
46 | ····move-result-object·v0 | 39 | ····move-result-object·v0 |
| |
47 | ····.line·204 | 40 | ····.line·213 |
48 | ····instance-of·v1,·v0,·Landroidx/preference/ListPreference; | 41 | ····instance-of·v1,·v0,·Landroidx/preference/ListPreference; |
| |
49 | ····if-eqz·v1,·:cond_0 | 42 | ····if-eqz·v1,·:cond_0 |
| |
50 | ····.line·210 | 43 | ····.line·219 |
51 | ····check-cast·v0,·Landroidx/preference/ListPreference; | 44 | ····check-cast·v0,·Landroidx/preference/ListPreference; |
| |
52 | ····return-object·v0 | 45 | ····return-object·v0 |
| |
53 | ····.line·205 | 46 | ····.line·214 |
54 | ····:cond_0 | 47 | ····:cond_0 |
55 | ····new-instance·v0,·Ljava/lang/IllegalStateException; | 48 | ····new-instance·v0,·Ljava/lang/IllegalStateException; |
| |
56 | ····const-string·v1,·"Cannot·use·ListPreferenceFragment·with·a·preference·that·is·not·of·type·ListPreference" | 49 | ····const-string·v1,·"Cannot·use·ListPreferenceFragment·with·a·preference·that·is·not·of·type·ListPreference" |
| |
57 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 50 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
58 | ····throw·v0 | 51 | ····throw·v0 |
| |
59 | ····.line·197 | 52 | ····.line·206 |
60 | ····:cond_1 | 53 | ····:cond_1 |
61 | ····new-instance·v0,·Ljava/lang/IllegalStateException; | 54 | ····new-instance·v0,·Ljava/lang/IllegalStateException; |
| |
62 | ····const-string·v1,·"Target·fragment·must·be·registered·before·displaying·ListPreference·screen." | 55 | ····const-string·v1,·"Target·fragment·must·be·registered·before·displaying·ListPreference·screen." |
| |
63 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 56 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
64 | ····throw·v0 | 57 | ····throw·v0 |
| |
65 | ····.line·192 | 58 | ····.line·201 |
66 | ····:cond_2 | 59 | ····:cond_2 |
67 | ····new-instance·v0,·Ljava/lang/IllegalStateException; | 60 | ····new-instance·v0,·Ljava/lang/IllegalStateException; |
| |
68 | ····const-string·v1,·"ListPreference·key·not·found·in·Fragment·arguments" | 61 | ····const-string·v1,·"ListPreference·key·not·found·in·Fragment·arguments" |
| |
69 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 62 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
70 | ····throw·v0 | 63 | ····throw·v0 |
| |
71 | ····.line·184 | |
72 | ····:cond_3 | |
73 | ····new-instance·v0,·Ljava/lang/IllegalStateException; | |
| |
74 | ····const-string·v1,·"Preference·arguments·cannot·be·null" | |
| |
75 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | |
| |
76 | ····throw·v0 | |
77 | .end·method | 64 | .end·method |
| |
78 | .method·private·synthetic·lambda$new$0()Z | 65 | .method·static·synthetic·lambda$onViewCreated$0(Lcom/android/car/ui/recyclerview/CarUiRecyclerView;Landroid/view/View;I)V |
79 | ····.locals·2 | 66 | ····.locals·2 |
| |
80 | ····.line·59 | |
81 | ····iget·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | |
| |
82 | ····if-ltz·v0,·:cond_0 | |
| |
83 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | |
| |
84 | ····if-eqz·v0,·:cond_0 | |
| |
85 | ····.line·60 | 67 | ····.line·103 |
| 68 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getPaddingTop()I |
86 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getEntryValues()[Ljava/lang/CharSequence; | |
| |
87 | ····move-result-object·v0 | |
| |
88 | ····iget·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | |
| |
89 | ····aget-object·v0,·v0,·v1 | |
| |
90 | ····invoke-interface·{v0},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; | |
| |
91 | ····move-result-object·v0 | |
| |
92 | ····.line·62 | |
93 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | |
| |
94 | ····invoke-virtual·{v1,·v0},·Landroidx/preference/Preference;->callChangeListener(Ljava/lang/Object;)Z | |
| |
95 | ····move-result·v1 | |
| |
96 | ····if-eqz·v1,·:cond_0 | 69 | ····move-result·v0 |
| |
| 70 | ····if-ne·v0,·p2,·:cond_0 |
97 | ····.line·63 | |
98 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | |
| |
99 | ····invoke-virtual·{v1,·v0},·Landroidx/preference/ListPreference;->setValue(Ljava/lang/String;)V | 71 | ····return-void |
| |
| 72 | ····.line·107 |
100 | ····:cond_0 | 73 | ····:cond_0 |
101 | ····const/4·v0,·0x0 | 74 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getPaddingTop()I |
| |
| 75 | ····move-result·v0 |
102 | ····return·v0 | |
103 | .end·method | |
| |
| 76 | ····const/4·v1,·0x0 |
104 | .method·static·synthetic·lambda$onViewCreated$1(Lcom/android/car/ui/recyclerview/CarUiRecyclerView;I)V | |
105 | ····.locals·2 | |
| |
106 | ····.line·108 | 77 | ····.line·108 |
107 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getPaddingTop()I | 78 | ····invoke-virtual·{p0,·v1,·p2,·v1,·v1},·Lcom/android/car/ui/recyclerview/CarUiRecyclerView;->setPadding(IIII)V |
| |
108 | ····move-result·v0 | 79 | ····sub-int/2addr·v0,·p2 |
| |
109 | ····if-ne·v0,·p1,·:cond_0 | 80 | ····.line·109 |
| 81 | ····invoke-virtual·{p0,·v1,·v0},·Landroidx/recyclerview/widget/RecyclerView;->scrollBy(II)V |
| |
110 | ····return-void | 82 | ····.line·111 |
| 83 | ····sget·p0,·Lcom/android/car/ui/R$id;->car_ui_focus_area:I |
| |
| 84 | ····invoke-virtual·{p1,·p0},·Landroid/view/View;->findViewById(I)Landroid/view/View; |
111 | ····.line·112 | |
112 | ····:cond_0 | |
113 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getPaddingTop()I | |
| |
114 | ····move-result·v0 | 85 | ····move-result-object·p0 |
| |
115 | ····const/4·v1,·0x0 | 86 | ····check-cast·p0,·Lcom/android/car/ui/FocusArea; |
| |
| 87 | ····if-eqz·p0,·:cond_1 |
116 | ····.line·113 | |
117 | ····invoke-virtual·{p0,·v1,·p1,·v1,·v1},·Lcom/android/car/ui/recyclerview/CarUiRecyclerView;->setPadding(IIII)V | |
| |
118 | ····sub-int/2addr·v0,·p1 | 88 | ····.line·113 |
| 89 | ····invoke-virtual·{p0,·v1,·p2,·v1,·v1},·Lcom/android/car/ui/FocusArea;->setHighlightPadding(IIII)V |
| |
119 | ····.line·114 | 90 | ····.line·114 |
120 | ····invoke-virtual·{p0,·v1,·v0},·Landroidx/recyclerview/widget/RecyclerView;->scrollBy(II)V | 91 | ····invoke-virtual·{p0,·v1,·p2,·v1,·v1},·Lcom/android/car/ui/FocusArea;->setBoundsOffset(IIII)V |
| |
| 92 | ····:cond_1 |
121 | ····return-void | 93 | ····return-void |
122 | .end·method | 94 | .end·method |
| |
123 | .method·private·synthetic·lambda$onViewCreated$2(Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;Lcom/android/car/ui/recyclerview/CarUiContentListItem;Z)V | 95 | .method·private·synthetic·lambda$onViewCreated$1(Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;Lcom/android/car/ui/recyclerview/CarUiContentListItem;Z)V |
124 | ····.locals·1 | 96 | ····.locals·1 |
| |
125 | ····.line·152 | 97 | ····.line·156 |
126 | ····iget-object·p4,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; | 98 | ····iget-object·p4,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; |
| |
127 | ····if-eqz·p4,·:cond_0 | 99 | ····if-eqz·p4,·:cond_0 |
| |
128 | ····const/4·v0,·0x0 | 100 | ····const/4·v0,·0x0 |
| |
129 | ····.line·153 | 101 | ····.line·157 |
130 | ····invoke-virtual·{p4,·v0},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setChecked(Z)V | 102 | ····invoke-virtual·{p4,·v0},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setChecked(Z)V |
| |
131 | ····.line·154 | 103 | ····.line·158 |
132 | ····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; |
| |
133 | ····invoke-interface·{p2,·p4},·Ljava/util/List;->indexOf(Ljava/lang/Object;)I | 105 | ····invoke-interface·{p2,·p4},·Ljava/util/List;->indexOf(Ljava/lang/Object;)I |
| |
134 | ····move-result·p4 | 106 | ····move-result·p4 |
| |
135 | ····invoke-virtual·{p1,·p4},·Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyItemChanged(I)V | 107 | ····invoke-virtual·{p1,·p4},·Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyItemChanged(I)V |
| |
136 | ····.line·156 | 108 | ····.line·160 |
137 | ····:cond_0 | 109 | ····:cond_0 |
138 | ····iput-object·p3,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; | 110 | ····iput-object·p3,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; |
| |
139 | ····.line·157 | 111 | ····.line·161 |
140 | ····invoke-interface·{p2,·p3},·Ljava/util/List;->indexOf(Ljava/lang/Object;)I | 112 | ····invoke-interface·{p2,·p3},·Ljava/util/List;->indexOf(Ljava/lang/Object;)I |
| |
141 | ····move-result·p1 | 113 | ····move-result·p1 |
| |
142 | ····iput·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | 114 | ····iput·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I |
| |
143 | ····return-void | 115 | ····return-void |
144 | .end·method | 116 | .end·method |
| |
145 | .method·static·newInstance(Ljava/lang/String;)Lcom/android/car/ui/preference/ListPreferenceFragment; | 117 | .method·static·newInstance(Ljava/lang/String;Z)Lcom/android/car/ui/preference/ListPreferenceFragment; |
146 | ····.locals·3 | 118 | ····.locals·3 |
| |
147 | ····.line·76 | 119 | ····.line·68 |
148 | ····new-instance·v0,·Lcom/android/car/ui/preference/ListPreferenceFragment; | 120 | ····new-instance·v0,·Lcom/android/car/ui/preference/ListPreferenceFragment; |
| |
149 | ····invoke-direct·{v0},·Lcom/android/car/ui/preference/ListPreferenceFragment;-><init>()V | 121 | ····invoke-direct·{v0},·Lcom/android/car/ui/preference/ListPreferenceFragment;-><init>()V |
| |
150 | ····.line·77 | 122 | ····.line·69 |
151 | ····new-instance·v1,·Landroid/os/Bundle; | 123 | ····new-instance·v1,·Landroid/os/Bundle; |
| |
152 | ····const/4·v2,·0x1 | 124 | ····const/4·v2,·0x1 |
| |
153 | ····invoke-direct·{v1,·v2},·Landroid/os/Bundle;-><init>(I)V | 125 | ····invoke-direct·{v1,·v2},·Landroid/os/Bundle;-><init>(I)V |
| |
154 | ····const-string·v2,·"key" | 126 | ····const-string·v2,·"key" |
| |
155 | ····.line·78 | 127 | ····.line·70 |
156 | ····invoke-virtual·{v1,·v2,·p0},·Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V | 128 | ····invoke-virtual·{v1,·v2,·p0},·Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V |
| |
| 129 | ····const-string·p0,·"fullscreen" |
| |
157 | ····.line·79 | 130 | ····.line·71 |
| 131 | ····invoke-virtual·{v1,·p0,·p1},·Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V |
| |
| 132 | ····.line·72 |
158 | ····invoke-virtual·{v0,·v1},·Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V | 133 | ····invoke-virtual·{v0,·v1},·Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V |
| |
159 | ····return-object·v0 | 134 | ····return-object·v0 |
160 | .end·method | 135 | .end·method |
| |
| 136 | .method·private·updatePreference()V |
| 137 | ····.locals·2 |
| |
| 138 | ····.line·186 |
| 139 | ····iget·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I |
161 | #·virtual·methods | |
162 | .method·public·synthetic·lambda$new$0$ListPreferenceFragment()Z | |
163 | ····.locals·1 | |
| |
164 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/ListPreferenceFragment;->lambda$new$0()Z | 140 | ····if-ltz·v0,·:cond_0 |
| |
165 | ····move-result·v0 | 141 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
| 142 | ····if-eqz·v0,·:cond_0 |
| |
| 143 | ····.line·187 |
| 144 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getEntryValues()[Ljava/lang/CharSequence; |
| |
| 145 | ····move-result-object·v0 |
| |
| 146 | ····iget·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I |
| |
| 147 | ····aget-object·v0,·v0,·v1 |
| |
| 148 | ····invoke-interface·{v0},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; |
| |
| 149 | ····move-result-object·v0 |
| |
| 150 | ····.line·189 |
| 151 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
| 152 | ····invoke-virtual·{v1,·v0},·Landroidx/preference/Preference;->callChangeListener(Ljava/lang/Object;)Z |
| |
| 153 | ····move-result·v1 |
| |
| 154 | ····if-eqz·v1,·:cond_0 |
| |
| 155 | ····.line·190 |
| 156 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
| 157 | ····invoke-virtual·{v1,·v0},·Landroidx/preference/ListPreference;->setValue(Ljava/lang/String;)V |
| |
| 158 | ····:cond_0 |
166 | ····return·v0 | 159 | ····return-void |
167 | .end·method | 160 | .end·method |
| |
| |
| 161 | #·virtual·methods |
168 | .method·public·synthetic·lambda$onViewCreated$2$ListPreferenceFragment(Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;Lcom/android/car/ui/recyclerview/CarUiContentListItem;Z)V | 162 | .method·public·synthetic·lambda$onViewCreated$1$ListPreferenceFragment(Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;Lcom/android/car/ui/recyclerview/CarUiContentListItem;Z)V |
169 | ····.locals·0 | 163 | ····.locals·0 |
| |
170 | ····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 | 164 | ····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 |
| |
171 | ····return-void | 165 | ····return-void |
172 | .end·method | 166 | .end·method |
| |
173 | .method·public·onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V | 167 | .method·public·onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V |
174 | ····.locals·5 | 168 | ····.locals·5 |
| |
175 | ····.line·215 | 169 | ····.line·224 |
| 170 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mFullScreen:Z |
| |
| 171 | ····if-nez·v0,·:cond_0 |
| |
| 172 | ····return-void |
| |
| 173 | ····.line·227 |
| 174 | ····:cond_0 |
176 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->requireView()Landroid/view/View; | 175 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->requireView()Landroid/view/View; |
| |
177 | ····move-result-object·v0 | 176 | ····move-result-object·v0 |
| |
178 | ····.line·216 | 177 | ····.line·228 |
179 | ····sget·v1,·Lcom/android/car/ui/R$id;->list:I | 178 | ····sget·v1,·Lcom/android/car/ui/R$id;->list:I |
| |
180 | ····invoke-static·{v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 179 | ····invoke-static·{v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
181 | ····move-result-object·v1 | 180 | ····move-result-object·v1 |
| |
182 | ····.line·217 | 181 | ····.line·229 |
183 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getTop()I | 182 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getTop()I |
| |
184 | ····move-result·v2 | 183 | ····move-result·v2 |
| |
185 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getBottom()I | 184 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getBottom()I |
| |
186 | ····move-result·v3 | 185 | ····move-result·v3 |
| |
187 | ····const/4·v4,·0x0 | 186 | ····const/4·v4,·0x0 |
| |
188 | ····invoke-virtual·{v1,·v4,·v2,·v4,·v3},·Landroid/view/View;->setPadding(IIII)V | 187 | ····invoke-virtual·{v1,·v4,·v2,·v4,·v3},·Landroid/view/View;->setPadding(IIII)V |
| |
189 | ····.line·218 | 188 | ····.line·230 |
190 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getLeft()I | 189 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getLeft()I |
| |
191 | ····move-result·v1 | 190 | ····move-result·v1 |
| |
192 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getRight()I | 191 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getRight()I |
| |
| 192 | ····move-result·v2 |
| |
| 193 | ····invoke-virtual·{v0,·v1,·v4,·v2,·v4},·Landroid/view/View;->setPadding(IIII)V |
| |
| 194 | ····.line·231 |
| 195 | ····sget·v1,·Lcom/android/car/ui/R$id;->car_ui_focus_area:I |
| |
| 196 | ····invoke-virtual·{v0,·v1},·Landroid/view/View;->findViewById(I)Landroid/view/View; |
| |
| 197 | ····move-result-object·v0 |
| |
| 198 | ····check-cast·v0,·Lcom/android/car/ui/FocusArea; |
| |
| 199 | ····if-eqz·v0,·:cond_1 |
| |
| 200 | ····.line·233 |
| 201 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getTop()I |
| |
| 202 | ····move-result·v1 |
| |
| 203 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getBottom()I |
| |
| 204 | ····move-result·v2 |
| |
| 205 | ····invoke-virtual·{v0,·v4,·v1,·v4,·v2},·Lcom/android/car/ui/FocusArea;->setHighlightPadding(IIII)V |
| |
| 206 | ····.line·234 |
| 207 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getTop()I |
| |
| 208 | ····move-result·v1 |
| |
| 209 | ····invoke-virtual·{p1},·Lcom/android/car/ui/baselayout/Insets;->getBottom()I |
| |
193 | ····move-result·p1 | 210 | ····move-result·p1 |
| |
194 | ····invoke-virtual·{v0,·v1,·v4,·p1,·v4},·Landroid/view/View;->setPadding(IIII)V | 211 | ····invoke-virtual·{v0,·v4,·v1,·v4,·p1},·Lcom/android/car/ui/FocusArea;->setBoundsOffset(IIII)V |
| |
| 212 | ····:cond_1 |
195 | ····return-void | 213 | ····return-void |
196 | .end·method | 214 | .end·method |
| |
197 | .method·public·onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View; | 215 | .method·public·onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View; |
198 | ····.locals·1 | 216 | ····.locals·1 |
| |
199 | ····.line·88 | 217 | ····.line·81 |
200 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity; | 218 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity; |
| |
201 | ····move-result-object·p3 | 219 | ····move-result-object·p3 |
| |
202 | ····invoke-static·{p3},·Lcom/android/car/ui/core/CarUi;->getToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; | 220 | ····invoke-static·{p3},·Lcom/android/car/ui/core/CarUi;->getToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; |
| |
203 | ····move-result-object·p3 | 221 | ····move-result-object·p3 |
| |
204 | ····const/4·v0,·0x0 | 222 | ····const/4·v0,·0x0 |
| |
205 | ····if-nez·p3,·:cond_0 | 223 | ····if-nez·p3,·:cond_0 |
| |
206 | ····.line·89 | 224 | ····.line·82 |
207 | ····sget·p3,·Lcom/android/car/ui/R$layout;->car_ui_list_preference_with_toolbar:I | 225 | ····sget·p3,·Lcom/android/car/ui/R$layout;->car_ui_list_preference_with_toolbar:I |
| |
208 | ····invoke-virtual·{p1,·p3,·p2,·v0},·Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; | 226 | ····invoke-virtual·{p1,·p3,·p2,·v0},·Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; |
| |
209 | ····move-result-object·p1 | 227 | ····move-result-object·p1 |
| |
210 | ····return-object·p1 | 228 | ····return-object·p1 |
| |
211 | ····.line·91 | 229 | ····.line·84 |
212 | ····:cond_0 | 230 | ····:cond_0 |
213 | ····sget·p3,·Lcom/android/car/ui/R$layout;->car_ui_list_preference:I | 231 | ····sget·p3,·Lcom/android/car/ui/R$layout;->car_ui_list_preference:I |
| |
214 | ····invoke-virtual·{p1,·p3,·p2,·v0},·Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; | 232 | ····invoke-virtual·{p1,·p3,·p2,·v0},·Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; |
| |
215 | ····move-result-object·p1 | 233 | ····move-result-object·p1 |
| |
216 | ····return-object·p1 | 234 | ····return-object·p1 |
217 | .end·method | 235 | .end·method |
| |
218 | .method·public·onStart()V | 236 | .method·public·onStart()V |
219 | ····.locals·2 | 237 | ····.locals·1 |
| |
220 | ····.line·168 | 238 | ····.line·172 |
221 | ····invoke-super·{p0},·Landroidx/fragment/app/Fragment;->onStart()V | 239 | ····invoke-super·{p0},·Landroidx/fragment/app/Fragment;->onStart()V |
| |
222 | ····.line·169 | |
223 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | |
| |
224 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mOnBackListener:Lcom/android/car/ui/toolbar/Toolbar$OnBackListener; | |
| |
225 | ····invoke-interface·{v0,·v1},·Lcom/android/car/ui/toolbar/ToolbarController;->registerOnBackListener(Lcom/android/car/ui/toolbar/Toolbar$OnBackListener;)V | |
| |
226 | ····.line·170 | 240 | ····.line·173 |
227 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity; | 241 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity; |
| |
228 | ····move-result-object·v0 | 242 | ····move-result-object·v0 |
| |
229 | ····invoke-static·{v0},·Lcom/android/car/ui/core/CarUi;->getInsets(Landroid/app/Activity;)Lcom/android/car/ui/baselayout/Insets; | 243 | ····invoke-static·{v0},·Lcom/android/car/ui/core/CarUi;->getInsets(Landroid/app/Activity;)Lcom/android/car/ui/baselayout/Insets; |
| |
230 | ····move-result-object·v0 | 244 | ····move-result-object·v0 |
| |
231 | ····if-eqz·v0,·:cond_0 | 245 | ····if-eqz·v0,·:cond_0 |
| |
232 | ····.line·172 | 246 | ····.line·175 |
233 | ····invoke-virtual·{p0,·v0},·Lcom/android/car/ui/preference/ListPreferenceFragment;->onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V | 247 | ····invoke-virtual·{p0,·v0},·Lcom/android/car/ui/preference/ListPreferenceFragment;->onCarUiInsetsChanged(Lcom/android/car/ui/baselayout/Insets;)V |
| |
234 | ····:cond_0 | 248 | ····:cond_0 |
235 | ····return-void | 249 | ····return-void |
236 | .end·method | 250 | .end·method |
| |
237 | .method·public·onStop()V | 251 | .method·public·onStop()V |
238 | ····.locals·2 | 252 | ····.locals·0 |
| |
239 | ····.line·178 | 253 | ····.line·181 |
240 | ····invoke-super·{p0},·Landroidx/fragment/app/Fragment;->onStop()V | 254 | ····invoke-super·{p0},·Landroidx/fragment/app/Fragment;->onStop()V |
| |
241 | ····.line·179 | 255 | ····.line·182 |
| 256 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/ListPreferenceFragment;->updatePreference()V |
242 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | |
| |
243 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mOnBackListener:Lcom/android/car/ui/toolbar/Toolbar$OnBackListener; | |
| |
244 | ····invoke-interface·{v0,·v1},·Lcom/android/car/ui/toolbar/ToolbarController;->unregisterOnBackListener(Lcom/android/car/ui/toolbar/Toolbar$OnBackListener;)Z | |
| |
245 | ····return-void | 257 | ····return-void |
246 | .end·method | 258 | .end·method |
| |
247 | .method·public·onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V | 259 | .method·public·onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V |
248 | ····.locals·6 | 260 | ····.locals·7 |
| |
249 | ····.line·97 | 261 | ····.line·90 |
250 | ····invoke-super·{p0,·p1,·p2},·Landroidx/fragment/app/Fragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V | 262 | ····invoke-super·{p0,·p1,·p2},·Landroidx/fragment/app/Fragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V |
| |
251 | ····.line·98 | 263 | ····.line·91 |
252 | ····sget·p2,·Lcom/android/car/ui/R$id;->list:I | 264 | ····sget·p2,·Lcom/android/car/ui/R$id;->list:I |
| |
253 | ····invoke-static·{p1,·p2},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 265 | ····invoke-static·{p1,·p2},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
254 | ····move-result-object·p2 | 266 | ····move-result-object·p2 |
| |
255 | ····check-cast·p2,·Lcom/android/car/ui/recyclerview/CarUiRecyclerView; | 267 | ····check-cast·p2,·Lcom/android/car/ui/recyclerview/CarUiRecyclerView; |
| |
256 | ····.line·99 | 268 | ····.line·92 |
| 269 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->requireArguments()Landroid/os/Bundle; |
| |
| 270 | ····move-result-object·v0 |
| |
| 271 | ····const-string·v1,·"fullscreen" |
| |
| 272 | ····const/4·v2,·0x1 |
| |
| 273 | ····invoke-virtual·{v0,·v1,·v2},·Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z |
| |
| 274 | ····move-result·v0 |
| |
| 275 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mFullScreen:Z |
| |
| 276 | ····if-eqz·v0,·:cond_0 |
| |
| 277 | ····.line·93 |
257 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity; | 278 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity; |
| |
258 | ····move-result-object·v0 | 279 | ····move-result-object·v0 |
| |
259 | ····invoke-static·{v0},·Lcom/android/car/ui/core/CarUi;->getToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; | 280 | ····invoke-static·{v0},·Lcom/android/car/ui/core/CarUi;->getToolbar(Landroid/app/Activity;)Lcom/android/car/ui/toolbar/ToolbarController; |
| |
260 | ····move-result-object·v0 | 281 | ····move-result-object·v0 |
| |
261 | ····iput-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | 282 | ····goto·:goto_0 |
| |
| 283 | ····:cond_0 |
| 284 | ····const/4·v0,·0x0 |
| |
| 285 | ····:goto_0 |
262 | ····const/4·v1,·0x0 | 286 | ····const/4·v1,·0x0 |
| |
263 | ····if-nez·v0,·:cond_0 | 287 | ····if-nez·v0,·:cond_1 |
| |
264 | ····.line·103 | 288 | ····.line·97 |
265 | ····sget·v0,·Lcom/android/car/ui/R$id;->toolbar:I | 289 | ····sget·v0,·Lcom/android/car/ui/R$id;->toolbar:I |
| |
266 | ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 290 | ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
267 | ····move-result-object·p1 | 291 | ····move-result-object·v0 |
| |
268 | ····check-cast·p1,·Lcom/android/car/ui/toolbar/Toolbar; | 292 | ····check-cast·v0,·Lcom/android/car/ui/toolbar/Toolbar; |
| |
| 293 | ····if-eqz·v0,·:cond_1 |
269 | ····.line·104 | |
270 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | |
| |
271 | ····.line·106 | 294 | ····.line·101 |
272 | ····invoke-virtual·{p1},·Landroid/widget/FrameLayout;->getHeight()I | 295 | ····invoke-virtual·{v0},·Landroid/widget/FrameLayout;->getHeight()I |
| |
273 | ····move-result·v0 | 296 | ····move-result·v3 |
| |
274 | ····invoke-virtual·{p2,·v1,·v0,·v1,·v1},·Lcom/android/car/ui/recyclerview/CarUiRecyclerView;->setPadding(IIII)V | 297 | ····invoke-virtual·{p2,·v1,·v3,·v1,·v1},·Lcom/android/car/ui/recyclerview/CarUiRecyclerView;->setPadding(IIII)V |
| |
275 | ····.line·107 | 298 | ····.line·102 |
276 | ····new-instance·v0,·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$-4S-HRzdiD6u7y7p3fNDT8ZstLg; | 299 | ····new-instance·v3,·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$HKa8RZ4bluJ2OmDLBl8YS7nrnUE; |
| |
277 | ····invoke-direct·{v0,·p2},·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$-4S-HRzdiD6u7y7p3fNDT8ZstLg;-><init>(Lcom/android/car/ui/recyclerview/CarUiRecyclerView;)V | 300 | ····invoke-direct·{v3,·p2,·p1},·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$HKa8RZ4bluJ2OmDLBl8YS7nrnUE;-><init>(Lcom/android/car/ui/recyclerview/CarUiRecyclerView;Landroid/view/View;)V |
| |
278 | ····invoke-virtual·{p1,·v0},·Lcom/android/car/ui/toolbar/Toolbar;->registerToolbarHeightChangeListener(Lcom/android/car/ui/toolbar/Toolbar$OnHeightChangedListener;)V | 301 | ····invoke-virtual·{v0,·v3},·Lcom/android/car/ui/toolbar/Toolbar;->registerToolbarHeightChangeListener(Lcom/android/car/ui/toolbar/Toolbar$OnHeightChangedListener;)V |
| |
279 | ····.line·118 | 302 | ····.line·120 |
280 | ····:cond_0 | 303 | ····:cond_1 |
281 | ····invoke-virtual·{p2,·v1},·Landroidx/recyclerview/widget/RecyclerView;->setClipToPadding(Z)V | 304 | ····invoke-virtual·{p2,·v1},·Landroidx/recyclerview/widget/RecyclerView;->setClipToPadding(Z)V |
| |
282 | ····.line·119 | 305 | ····.line·121 |
283 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/ListPreferenceFragment;->getListPreference()Landroidx/preference/ListPreference; | 306 | ····invoke-direct·{p0},·Lcom/android/car/ui/preference/ListPreferenceFragment;->getListPreference()Landroidx/preference/ListPreference; |
| |
284 | ····move-result-object·p1 | 307 | ····move-result-object·p1 |
| |
285 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | 308 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
| 309 | ····if-eqz·v0,·:cond_2 |
286 | ····.line·120 | |
287 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | |
| |
| 310 | ····.line·123 |
288 | ····invoke-virtual·{p1},·Landroidx/preference/Preference;->getTitle()Ljava/lang/CharSequence; | 311 | ····invoke-virtual·{p1},·Landroidx/preference/Preference;->getTitle()Ljava/lang/CharSequence; |
| |
289 | ····move-result-object·p1 | 312 | ····move-result-object·p1 |
| |
290 | ····invoke-interface·{v0,·p1},·Lcom/android/car/ui/toolbar/ToolbarController;->setTitle(Ljava/lang/CharSequence;)V | 313 | ····invoke-interface·{v0,·p1},·Lcom/android/car/ui/toolbar/ToolbarController;->setTitle(Ljava/lang/CharSequence;)V |
| |
291 | ····.line·121 | 314 | ····.line·124 |
292 | ····iget-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mToolbar:Lcom/android/car/ui/toolbar/ToolbarController; | |
| |
293 | ····sget-object·v0,·Lcom/android/car/ui/toolbar/Toolbar$State;->SUBPAGE:Lcom/android/car/ui/toolbar/Toolbar$State; | 315 | ····sget-object·p1,·Lcom/android/car/ui/toolbar/Toolbar$State;->SUBPAGE:Lcom/android/car/ui/toolbar/Toolbar$State; |
| |
294 | ····invoke-interface·{p1,·v0},·Lcom/android/car/ui/toolbar/ToolbarController;->setState(Lcom/android/car/ui/toolbar/Toolbar$State;)V | 316 | ····invoke-interface·{v0,·p1},·Lcom/android/car/ui/toolbar/ToolbarController;->setState(Lcom/android/car/ui/toolbar/Toolbar$State;)V |
| |
295 | ····.line·123 | 317 | ····.line·127 |
| 318 | ····:cond_2 |
296 | ····iget-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | 319 | ····iget-object·p1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
297 | ····invoke-virtual·{p1},·Landroidx/preference/ListPreference;->getEntries()[Ljava/lang/CharSequence; | 320 | ····invoke-virtual·{p1},·Landroidx/preference/ListPreference;->getEntries()[Ljava/lang/CharSequence; |
| |
298 | ····move-result-object·p1 | 321 | ····move-result-object·p1 |
| |
299 | ····.line·124 | 322 | ····.line·128 |
300 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | 323 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
301 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getEntryValues()[Ljava/lang/CharSequence; | 324 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getEntryValues()[Ljava/lang/CharSequence; |
| |
302 | ····move-result-object·v0 | 325 | ····move-result-object·v0 |
| |
303 | ····if-eqz·p1,·:cond_4 | 326 | ····if-eqz·p1,·:cond_6 |
| |
304 | ····if-eqz·v0,·:cond_4 | 327 | ····if-eqz·v0,·:cond_6 |
| |
305 | ····.line·131 | 328 | ····.line·135 |
306 | ····array-length·v2,·p1 | 329 | ····array-length·v3,·p1 |
| |
307 | ····array-length·v0,·v0 | 330 | ····array-length·v0,·v0 |
| |
308 | ····if-ne·v2,·v0,·:cond_3 | 331 | ····if-ne·v3,·v0,·:cond_5 |
| |
309 | ····.line·136 | 332 | ····.line·140 |
310 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | 333 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; |
| |
311 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getValue()Ljava/lang/String; | 334 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getValue()Ljava/lang/String; |
| |
312 | ····move-result-object·v2 | 335 | ····move-result-object·v3 |
| |
313 | ····invoke-virtual·{v0,·v2},·Landroidx/preference/ListPreference;->findIndexOfValue(Ljava/lang/String;)I | 336 | ····invoke-virtual·{v0,·v3},·Landroidx/preference/ListPreference;->findIndexOfValue(Ljava/lang/String;)I |
| |
314 | ····move-result·v0 | 337 | ····move-result·v0 |
| |
315 | ····iput·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | 338 | ····iput·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I |
| |
316 | ····.line·137 | 339 | ····.line·141 |
317 | ····new-instance·v0,·Ljava/util/ArrayList; | 340 | ····new-instance·v0,·Ljava/util/ArrayList; |
| |
318 | ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V | 341 | ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V |
| |
319 | ····.line·138 | 342 | ····.line·142 |
320 | ····new-instance·v2,·Lcom/android/car/ui/recyclerview/CarUiListItemAdapter; | 343 | ····new-instance·v3,·Lcom/android/car/ui/recyclerview/CarUiListItemAdapter; |
| |
321 | ····invoke-direct·{v2,·v0},·Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;-><init>(Ljava/util/List;)V | 344 | ····invoke-direct·{v3,·v0},·Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;-><init>(Ljava/util/List;)V |
| |
322 | ····.line·140 | 345 | ····.line·144 |
323 | ····:goto_0 | 346 | ····:goto_1 |
324 | ····array-length·v3,·p1 | 347 | ····array-length·v4,·p1 |
| |
325 | ····if-ge·v1,·v3,·:cond_2 | 348 | ····if-ge·v1,·v4,·:cond_4 |
| |
326 | ····.line·141 | 349 | ····.line·145 |
327 | ····aget-object·v3,·p1,·v1 | 350 | ····aget-object·v4,·p1,·v1 |
| |
328 | ····invoke-interface·{v3},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; | 351 | ····invoke-interface·{v4},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; |
| |
329 | ····move-result-object·v3 | 352 | ····move-result-object·v4 |
| |
330 | ····.line·142 | 353 | ····.line·146 |
331 | ····new-instance·v4,·Lcom/android/car/ui/recyclerview/CarUiContentListItem; | 354 | ····new-instance·v5,·Lcom/android/car/ui/recyclerview/CarUiContentListItem; |
| |
332 | ····sget-object·v5,·Lcom/android/car/ui/recyclerview/CarUiContentListItem$Action;->RADIO_BUTTON:Lcom/android/car/ui/recyclerview/CarUiContentListItem$Action; | |
| |
333 | ····invoke-direct·{v4,·v5},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;-><init>(Lcom/android/car/ui/recyclerview/CarUiContentListItem$Action;)V | 355 | ····sget-object·v6,·Lcom/android/car/ui/recyclerview/CarUiContentListItem$Action;->RADIO_BUTTON:Lcom/android/car/ui/recyclerview/CarUiContentListItem$Action; |
| |
| 356 | ····invoke-direct·{v5,·v6},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;-><init>(Lcom/android/car/ui/recyclerview/CarUiContentListItem$Action;)V |
334 | ····.line·144 | |
335 | ····invoke-virtual·{v4,·v3},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setTitle(Ljava/lang/CharSequence;)V | |
| |
336 | ····.line·146 | 357 | ····.line·148 |
337 | ····iget·v3,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | 358 | ····invoke-virtual·{v5,·v4},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setTitle(Ljava/lang/CharSequence;)V |
| |
338 | ····if-ne·v1,·v3,·:cond_1 | 359 | ····.line·150 |
| 360 | ····iget·v4,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I |
| |
339 | ····const/4·v3,·0x1 | 361 | ····if-ne·v1,·v4,·:cond_3 |
| |
340 | ····.line·147 | 362 | ····.line·151 |
341 | ····invoke-virtual·{v4,·v3},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setChecked(Z)V | 363 | ····invoke-virtual·{v5,·v2},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setChecked(Z)V |
| |
342 | ····.line·148 | 364 | ····.line·152 |
343 | ····iput-object·v4,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; | 365 | ····iput-object·v5,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; |
| |
344 | ····.line·151 | 366 | ····.line·155 |
345 | ····:cond_1 | 367 | ····:cond_3 |
346 | ····new-instance·v3,·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$_qX72ML5m90BsqFfxmBxcpJVqoA; | 368 | ····new-instance·v4,·Lcom/android/car/ui/preference/-$$Lambda$ListPreferenceFragment$rJYZvC0kZuHGeJHuQaBshexRSFM; |
| |
347 | ····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 | 369 | ····invoke-direct·{v4,·p0,·v3,·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 |
| |
348 | ····invoke-virtual·{v4,·v3},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setOnCheckedChangeListener(Lcom/android/car/ui/recyclerview/CarUiContentListItem$OnCheckedChangeListener;)V | 370 | ····invoke-virtual·{v5,·v4},·Lcom/android/car/ui/recyclerview/CarUiContentListItem;->setOnCheckedChangeListener(Lcom/android/car/ui/recyclerview/CarUiContentListItem$OnCheckedChangeListener;)V |
| |
349 | ····.line·160 | 371 | ····.line·164 |
350 | ····invoke-interface·{v0,·v4},·Ljava/util/List;->add(Ljava/lang/Object;)Z | 372 | ····invoke-interface·{v0,·v5},·Ljava/util/List;->add(Ljava/lang/Object;)Z |
| |
351 | ····add-int/lit8·v1,·v1,·0x1 | 373 | ····add-int/lit8·v1,·v1,·0x1 |
| |
352 | ····goto·:goto_0 | 374 | ····goto·:goto_1 |
| |
353 | ····.line·163 | 375 | ····.line·167 |
354 | ····:cond_2 | 376 | ····:cond_4 |
355 | ····invoke-virtual·{p2,·v2},·Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V | 377 | ····invoke-virtual·{p2,·v3},·Lcom/android/car/ui/recyclerview/CarUiRecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V |
| |
356 | ····return-void | 378 | ····return-void |
| |
357 | ····.line·132 | 379 | ····.line·136 |
358 | ····:cond_3 | 380 | ····:cond_5 |
359 | ····new-instance·p1,·Ljava/lang/IllegalStateException; | 381 | ····new-instance·p1,·Ljava/lang/IllegalStateException; |
| |
360 | ····const-string·p2,·"ListPreference·entries·array·length·does·not·match·entryValues·array·length." | 382 | ····const-string·p2,·"ListPreference·entries·array·length·does·not·match·entryValues·array·length." |
| |
361 | ····invoke-direct·{p1,·p2},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 383 | ····invoke-direct·{p1,·p2},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
362 | ····throw·p1 | 384 | ····throw·p1 |
| |
363 | ····.line·127 | 385 | ····.line·131 |
364 | ····:cond_4 | 386 | ····:cond_6 |
365 | ····new-instance·p1,·Ljava/lang/IllegalStateException; | 387 | ····new-instance·p1,·Ljava/lang/IllegalStateException; |
| |
366 | ····const-string·p2,·"ListPreference·requires·an·entries·array·and·an·entryValues·array." | 388 | ····const-string·p2,·"ListPreference·requires·an·entries·array·and·an·entryValues·array." |
| |
367 | ····invoke-direct·{p1,·p2},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 389 | ····invoke-direct·{p1,·p2},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
368 | ····throw·p1 | 390 | ····throw·p1 |