| | | |
Offset 2, 619 lines modified | Offset 2, 693 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; | 13 | .field·private·mUseInstantPreferenceChangeCallback:Z |
| |
| |
12 | #·direct·methods | 14 | #·direct·methods |
13 | .method·public·constructor·<init>()V | 15 | .method·public·constructor·<init>()V |
14 | ····.locals·1 | 16 | ····.locals·1 |
| |
15 | ····.line·52 | 17 | ····.line·53 |
16 | ····invoke-direct·{p0},·Landroidx/fragment/app/Fragment;-><init>()V | 18 | ····invoke-direct·{p0},·Landroidx/fragment/app/Fragment;-><init>()V |
| |
17 | ····const/4·v0,·-0x1 | 19 | ····const/4·v0,·-0x1 |
| |
18 | ····.line·57 | 20 | ····.line·59 |
19 | ····iput·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | 21 | ····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 | 22 | ····return-void |
25 | .end·method | 23 | .end·method |
| |
26 | .method·private·getListPreference()Landroidx/preference/ListPreference; | 24 | .method·private·getListPreference()Landroidx/preference/ListPreference; |
27 | ····.locals·2 | 25 | ····.locals·2 |
| |
28 | ····.line·183 | 26 | ····.line·211 |
29 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle; | 27 | ····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 | 28 | ····move-result-object·v0 |
| |
35 | ····const-string·v1,·"key" | 29 | ····const-string·v1,·"key" |
| |
36 | ····invoke-virtual·{v0,·v1},·Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; | 30 | ····invoke-virtual·{v0,·v1},·Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; |
| |
37 | ····move-result-object·v0 | 31 | ····move-result-object·v0 |
| |
38 | ····.line·189 | 32 | ····.line·213 |
39 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getTargetFragment()Landroidx/fragment/app/Fragment; | 33 | ····invoke-virtual·{p0},·Landroidx/fragment/app/Fragment;->getTargetFragment()Landroidx/fragment/app/Fragment; |
| |
40 | ····move-result-object·v1 | 34 | ····move-result-object·v1 |
| |
41 | ····check-cast·v1,·Landroidx/preference/DialogPreference$TargetFragment; | 35 | ····check-cast·v1,·Landroidx/preference/DialogPreference$TargetFragment; |
| |
42 | ····if-eqz·v0,·:cond_2 | 36 | ····if-eqz·v0,·:cond_2 |
| |
43 | ····if-eqz·v1,·:cond_1 | 37 | ····if-eqz·v1,·:cond_1 |
| |
44 | ····.line·202 | 38 | ····.line·226 |
45 | ····invoke-interface·{v1,·v0},·Landroidx/preference/DialogPreference$TargetFragment;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference; | 39 | ····invoke-interface·{v1,·v0},·Landroidx/preference/DialogPreference$TargetFragment;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference; |
| |
46 | ····move-result-object·v0 | 40 | ····move-result-object·v0 |
| |
47 | ····.line·204 | 41 | ····.line·228 |
48 | ····instance-of·v1,·v0,·Landroidx/preference/ListPreference; | 42 | ····instance-of·v1,·v0,·Landroidx/preference/ListPreference; |
| |
49 | ····if-eqz·v1,·:cond_0 | 43 | ····if-eqz·v1,·:cond_0 |
| |
50 | ····.line·210 | 44 | ····.line·234 |
51 | ····check-cast·v0,·Landroidx/preference/ListPreference; | 45 | ····check-cast·v0,·Landroidx/preference/ListPreference; |
| |
52 | ····return-object·v0 | 46 | ····return-object·v0 |
| |
53 | ····.line·205 | 47 | ····.line·229 |
54 | ····:cond_0 | 48 | ····:cond_0 |
55 | ····new-instance·v0,·Ljava/lang/IllegalStateException; | 49 | ····new-instance·v0,·Ljava/lang/IllegalStateException; |
| |
56 | ····const-string·v1,·"Cannot·use·ListPreferenceFragment·with·a·preference·that·is·not·of·type·ListPreference" | 50 | ····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 | 51 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
58 | ····throw·v0 | 52 | ····throw·v0 |
| |
59 | ····.line·197 | 53 | ····.line·221 |
60 | ····:cond_1 | 54 | ····:cond_1 |
61 | ····new-instance·v0,·Ljava/lang/IllegalStateException; | 55 | ····new-instance·v0,·Ljava/lang/IllegalStateException; |
| |
62 | ····const-string·v1,·"Target·fragment·must·be·registered·before·displaying·ListPreference·screen." | 56 | ····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 | 57 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
64 | ····throw·v0 | 58 | ····throw·v0 |
| |
65 | ····.line·192 | 59 | ····.line·216 |
66 | ····:cond_2 | 60 | ····:cond_2 |
67 | ····new-instance·v0,·Ljava/lang/IllegalStateException; | 61 | ····new-instance·v0,·Ljava/lang/IllegalStateException; |
| |
68 | ····const-string·v1,·"ListPreference·key·not·found·in·Fragment·arguments" | 62 | ····const-string·v1,·"ListPreference·key·not·found·in·Fragment·arguments" |
| |
69 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | 63 | ····invoke-direct·{v0,·v1},·Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
| |
70 | ····throw·v0 | 64 | ····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 | 65 | .end·method |
| |
78 | .method·private·synthetic·lambda$new$0()Z | 66 | .method·static·synthetic·lambda$onViewCreated$0(Lcom/android/car/ui/recyclerview/CarUiRecyclerView;Landroid/view/View;I)V |
79 | ····.locals·2 | 67 | ····.locals·2 |
| |
80 | ····.line·59 | 68 | ····.line·106 |
81 | ····iget·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | 69 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getPaddingTop()I |
| |
82 | ····if-ltz·v0,·:cond_0 | 70 | ····move-result·v0 |
| |
83 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | 71 | ····if-ne·v0,·p2,·:cond_0 |
| |
84 | ····if-eqz·v0,·:cond_0 | 72 | ····return-void |
| |
85 | ····.line·60 | 73 | ····.line·110 |
86 | ····invoke-virtual·{v0},·Landroidx/preference/ListPreference;->getEntryValues()[Ljava/lang/CharSequence; | 74 | ····:cond_0 |
| 75 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getPaddingTop()I |
| |
87 | ····move-result-object·v0 | 76 | ····move-result·v0 |
| |
88 | ····iget·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedIndex:I | 77 | ····const/4·v1,·0x0 |
| |
89 | ····aget-object·v0,·v0,·v1 | 78 | ····.line·111 |
| 79 | ····invoke-virtual·{p0,·v1,·p2,·v1,·v1},·Lcom/android/car/ui/recyclerview/CarUiRecyclerView;->setPadding(IIII)V |
| |
90 | ····invoke-interface·{v0},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; | 80 | ····sub-int/2addr·v0,·p2 |
| |
91 | ····move-result-object·v0 | 81 | ····.line·112 |
| 82 | ····invoke-virtual·{p0,·v1,·v0},·Landroidx/recyclerview/widget/RecyclerView;->scrollBy(II)V |
| |
92 | ····.line·62 | 83 | ····.line·114 |
93 | ····iget-object·v1,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mPreference:Landroidx/preference/ListPreference; | 84 | ····sget·p0,·Lcom/android/car/ui/R$id;->car_ui_focus_area:I |
| |
94 | ····invoke-virtual·{v1,·v0},·Landroidx/preference/Preference;->callChangeListener(Ljava/lang/Object;)Z | 85 | ····invoke-virtual·{p1,·p0},·Landroid/view/View;->findViewById(I)Landroid/view/View; |
| |
95 | ····move-result·v1 | 86 | ····move-result-object·p0 |
| |
96 | ····if-eqz·v1,·:cond_0 | 87 | ····check-cast·p0,·Lcom/android/car/ui/FocusArea; |
| |
| 88 | ····if-eqz·p0,·:cond_1 |
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 | 89 | ····.line·116 |
| 90 | ····invoke-virtual·{p0,·v1,·p2,·v1,·v1},·Lcom/android/car/ui/FocusArea;->setHighlightPadding(IIII)V |
| |
100 | ····:cond_0 | |
101 | ····const/4·v0,·0x0 | 91 | ····.line·117 |
| 92 | ····invoke-virtual·{p0,·v1,·p2,·v1,·v1},·Lcom/android/car/ui/FocusArea;->setBoundsOffset(IIII)V |
| |
| 93 | ····:cond_1 |
102 | ····return·v0 | 94 | ····return-void |
103 | .end·method | 95 | .end·method |
| |
104 | .method·static·synthetic·lambda$onViewCreated$1(Lcom/android/car/ui/recyclerview/CarUiRecyclerView;I)V | 96 | .method·private·synthetic·lambda$onViewCreated$1(Lcom/android/car/ui/recyclerview/CarUiListItemAdapter;Ljava/util/List;Lcom/android/car/ui/recyclerview/CarUiContentListItem;Z)V |
105 | ····.locals·2 | 97 | ····.locals·1 |
| |
106 | ····.line·108 | |
107 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getPaddingTop()I | |
| |
108 | ····move-result·v0 | |
| |
109 | ····if-ne·v0,·p1,·:cond_0 | 98 | ····if-nez·p4,·:cond_0 |
| |
110 | ····return-void | 99 | ····return-void |
| |
111 | ····.line·112 | 100 | ····.line·164 |
112 | ····:cond_0 | 101 | ····:cond_0 |
113 | ····invoke-virtual·{p0},·Landroid/view/ViewGroup;->getPaddingTop()I | |
| |
114 | ····move-result·v0 | |
| |
115 | ····const/4·v1,·0x0 | |
| |
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 | |
| |
119 | ····.line·114 | |
120 | ····invoke-virtual·{p0,·v1,·v0},·Landroidx/recyclerview/widget/RecyclerView;->scrollBy(II)V | |
| |
121 | ····return-void | |
122 | .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 | |
124 | ····.locals·1 | |
| |
125 | ····.line·152 | |
126 | ····iget-object·p4,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; | 102 | ····iget-object·p4,·p0,·Lcom/android/car/ui/preference/ListPreferenceFragment;->mSelectedItem:Lcom/android/car/ui/recyclerview/CarUiContentListItem; |
Max report size reached; 23437/31482 bytes (74.45%) of diff not shown.
|