| | | |
Offset 1, 13 lines modified | Offset 1, 12 lines modified |
| |
1 | package·com.android.permissioncontroller.permission.ui.model; | 1 | package·com.android.permissioncontroller.permission.ui.model; |
| |
2 | import·androidx.lifecycle.LiveData; | 2 | import·androidx.lifecycle.LiveData; |
3 | import·com.android.permissioncontroller.permission.data.LightAppPermGroupLiveData; | 3 | import·com.android.permissioncontroller.permission.data.LightAppPermGroupLiveData; |
4 | import·com.android.permissioncontroller.permission.model.livedatatypes.LightPackageInfo; | |
5 | import·com.android.permissioncontroller.permission.model.livedatatypes.LightAppPermGroup$AppPermSubGroup; | 4 | import·com.android.permissioncontroller.permission.model.livedatatypes.LightAppPermGroup$AppPermSubGroup; |
6 | import·com.android.permissioncontroller.permission.model.livedatatypes.LightAppPermGroup; | 5 | import·com.android.permissioncontroller.permission.model.livedatatypes.LightAppPermGroup; |
7 | import·com.android.permissioncontroller.permission.model.livedatatypes.LightPermGroupInfo; | 6 | import·com.android.permissioncontroller.permission.model.livedatatypes.LightPermGroupInfo; |
8 | import·java.util.Comparator; | 7 | import·java.util.Comparator; |
9 | import·kotlin.collections.CollectionsKt; | 8 | import·kotlin.collections.CollectionsKt; |
10 | import·com.android.permissioncontroller.permission.ui.handheld.dashboard.UtilsKt; | 9 | import·com.android.permissioncontroller.permission.ui.handheld.dashboard.UtilsKt; |
11 | import·com.android.permissioncontroller.permission.utils.Utils; | 10 | import·com.android.permissioncontroller.permission.utils.Utils; |
Offset 99, 48 lines modified | Offset 98, 48 lines modified |
99 | ········List<GrantPermissionsViewModel$RequestInfo>·value·=·new·ArrayList<GrantPermissionsViewModel$RequestInfo>(); | 98 | ········List<GrantPermissionsViewModel$RequestInfo>·value·=·new·ArrayList<GrantPermissionsViewModel$RequestInfo>(); |
100 | ········Iterator<Map.Entry<Pair,·V>>·iterator·=·GrantPermissionsViewModel.access$getGroupStates$p(this.this$0).entrySet().iterator(); | 99 | ········Iterator<Map.Entry<Pair,·V>>·iterator·=·GrantPermissionsViewModel.access$getGroupStates$p(this.this$0).entrySet().iterator(); |
101 | ····Label_1115_Outer: | 100 | ····Label_1115_Outer: |
102 | ········while·(iterator.hasNext())·{ | 101 | ········while·(iterator.hasNext())·{ |
103 | ············final·Map.Entry<Pair,·V>·entry·=·(Map.Entry<Pair,·V>)iterator.next(); | 102 | ············final·Map.Entry<Pair,·V>·entry·=·(Map.Entry<Pair,·V>)iterator.next(); |
104 | ············final·Pair·pair·=·(Pair)entry.getKey(); | 103 | ············final·Pair·pair·=·(Pair)entry.getKey(); |
105 | ············final·GrantPermissionsViewModel$GroupState·grantPermissionsViewModel$GroupState·=·(GrantPermissionsViewModel$GroupState)entry.getValue(); | 104 | ············final·GrantPermissionsViewModel$GroupState·grantPermissionsViewModel$GroupState·=·(GrantPermissionsViewModel$GroupState)entry.getValue(); |
106 | ············final·LightPermGroupInfo·permGroupInfo·=·grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().getPermGroupInfo(); | 105 | ············final·LightPermGroupInfo·permGroupInfo·=·grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().getPermGroupInfo(); |
107 | ············final·String·s·=·(String)pair.component1(); | 106 | ············final·String·s·=·(String)pair.component1(); |
108 | ············final·boolean·booleanValue·=·(boolean)pair.component2(); | 107 | ············final·boolean·booleanValue·=·(boolean)pair.component2(); |
109 | ············if·(grantPermissionsViewModel$GroupState.getState$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController()·!=·0)·{ | 108 | ············if·(grantPermissionsViewModel$GroupState.getState$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController()·!=·0)·{ |
110 | ················continue·Label_1115_Outer; | 109 | ················continue·Label_1115_Outer; |
111 | ············} | 110 | ············} |
112 | ············final·GrantPermissionsViewModel$GroupState·grantPermissionsViewModel$GroupState2·=·(GrantPermissionsViewModel$GroupState)GrantPermissionsViewModel.access$getGroupStates$p(this.this$0).get(TuplesKt.to((Object)s,·(Object)Boolean.FALSE)); | 111 | ············final·GrantPermissionsViewModel$GroupState·grantPermissionsViewModel$GroupState2·=·(GrantPermissionsViewModel$GroupState)GrantPermissionsViewModel.access$getGroupStates$p(this.this$0).get(TuplesKt.to((Object)s,·(Object)Boolean.FALSE)); |
113 | ············final·GrantPermissionsViewModel$GroupState·grantPermissionsViewModel$GroupState3·=·(GrantPermissionsViewModel$GroupState)GrantPermissionsViewModel.access$getGroupStates$p(this.this$0).get(TuplesKt.to((Object)s,·(Object)Boolean.TRUE)); | 112 | ············final·GrantPermissionsViewModel$GroupState·grantPermissionsViewModel$GroupState3·=·(GrantPermissionsViewModel$GroupState)GrantPermissionsViewModel.access$getGroupStates$p(this.this$0).get(TuplesKt.to((Object)s,·(Object)Boolean.TRUE)); |
114 | ············LightAppPermGroup·group$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController; | 113 | ············LightAppPermGroup·group$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController; |
115 | ············if·(grantPermissionsViewModel$GroupState2·==·null)·{ | 114 | ············if·(grantPermissionsViewModel$GroupState2·==·null)·{ |
116 | ················group$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController·=·null; | 115 | ················group$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController·=·null; |
117 | ············} | 116 | ············} |
118 | ············else·{ | 117 | ············else·{ |
119 | ················group$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController·=·grantPermissionsViewModel$GroupState2.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController(); | 118 | ················group$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController·=·grantPermissionsViewModel$GroupState2.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController(); |
120 | ············} | 119 | ············} |
121 | ············boolean·b; | 120 | ············boolean·b; |
122 | ············boolean·b2; | 121 | ············boolean·b2; |
123 | ············if·(group$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController·!=·null)·{ | 122 | ············if·(group$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController·!=·null)·{ |
124 | ················final·LightAppPermGroup·group$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController2·=·grantPermissionsViewModel$GroupState2.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController(); | 123 | ················final·LightAppPermGroup·group$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController2·=·grantPermissionsViewModel$GroupState2.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController(); |
125 | ················final·Iterator·iterator2·=·grantPermissionsViewModel$GroupState2.getAffectedPermissions$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().iterator(); | 124 | ················final·Iterator·iterator2·=·grantPermissionsViewModel$GroupState2.getAffectedPermissions$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().iterator(); |
126 | ················b·=·false; | 125 | ················b·=·false; |
127 | ················b2·=·false; | 126 | ················b2·=·false; |
128 | ················while·(iterator2.hasNext())·{ | 127 | ················while·(iterator2.hasNext())·{ |
129 | ····················final·String·s2·=·(String)iterator2.next(); | 128 | ····················final·String·s2·=·(String)iterator2.next(); |
130 | ····················final·LightPermission·lightPermission·=·(LightPermission)group$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController2.getPermissions().get(s2); | 129 | ····················final·LightPermission·lightPermission·=·(LightPermission)group$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController2.getPermissions().get(s2); |
131 | ····················Object·value2; | 130 | ····················Object·value2; |
132 | ····················if·(lightPermission·==·null)·{ | 131 | ····················if·(lightPermission·==·null)·{ |
133 | ························value2·=·null; | 132 | ························value2·=·null; |
134 | ····················} | 133 | ····················} |
135 | ····················else·{ | 134 | ····················else·{ |
136 | ························value2·=·lightPermission.isGrantedIncludingAppOp(); | 135 | ························value2·=·lightPermission.isGrantedIncludingAppOp(); |
137 | ····················} | 136 | ····················} |
138 | ····················if·(Intrinsics.areEqual(value2,·(Object)Boolean.FALSE))·{ | 137 | ····················if·(Intrinsics.areEqual(value2,·(Object)Boolean.FALSE))·{ |
139 | ························final·LightPermission·lightPermission2·=·(LightPermission)group$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController2.getPermissions().get(s2); | 138 | ························final·LightPermission·lightPermission2·=·(LightPermission)group$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController2.getPermissions().get(s2); |
140 | ························Object·value3; | 139 | ························Object·value3; |
141 | ························if·(lightPermission2·==·null)·{ | 140 | ························if·(lightPermission2·==·null)·{ |
142 | ····························value3·=·null; | 141 | ····························value3·=·null; |
143 | ························} | 142 | ························} |
144 | ························else·{ | 143 | ························else·{ |
145 | ····························value3·=·lightPermission2.isUserSet(); | 144 | ····························value3·=·lightPermission2.isUserSet(); |
146 | ························} | 145 | ························} |
Offset 153, 36 lines modified | Offset 152, 36 lines modified |
153 | ····················} | 152 | ····················} |
154 | ················} | 153 | ················} |
155 | ············} | 154 | ············} |
156 | ············else·{ | 155 | ············else·{ |
157 | ················b·=·false; | 156 | ················b·=·false; |
158 | ················b2·=·false; | 157 | ················b2·=·false; |
159 | ············} | 158 | ············} |
160 | ············LightAppPermGroup·group$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController3; | 159 | ············LightAppPermGroup·group$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController3; |
161 | ············if·(grantPermissionsViewModel$GroupState3·==·null)·{ | 160 | ············if·(grantPermissionsViewModel$GroupState3·==·null)·{ |
162 | ················group$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController3·=·null; | 161 | ················group$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController3·=·null; |
163 | ············} | 162 | ············} |
164 | ············else·{ | 163 | ············else·{ |
165 | ················group$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController3·=·grantPermissionsViewModel$GroupState3.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController(); | 164 | ················group$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController3·=·grantPermissionsViewModel$GroupState3.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController(); |
166 | ············} | 165 | ············} |
167 | ············Object·value4·=·null; | 166 | ············Object·value4·=·null; |
168 | ············Label_0494:·{ | 167 | ············Label_0494:·{ |
169 | ················if·(group$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController3·!=·null)·{ | 168 | ················if·(group$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController3·!=·null)·{ |
170 | ····················final·LightAppPermGroup$AppPermSubGroup·background·=·group$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController3.getBackground(); | 169 | ····················final·LightAppPermGroup$AppPermSubGroup·background·=·group$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController3.getBackground(); |
171 | ····················if·(background·!=·null)·{ | 170 | ····················if·(background·!=·null)·{ |
172 | ························value4·=·background.isGranted(); | 171 | ························value4·=·background.isGranted(); |
173 | ························break·Label_0494; | 172 | ························break·Label_0494; |
174 | ····················} | 173 | ····················} |
175 | ················} | 174 | ················} |
176 | ················value4·=·null; | 175 | ················value4·=·null; |
177 | ············} | 176 | ············} |
178 | ············boolean·userSet; | 177 | ············boolean·userSet; |
179 | ············boolean·b3; | 178 | ············boolean·b3; |
180 | ············if·(Intrinsics.areEqual(value4,·(Object)Boolean.FALSE))·{ | 179 | ············if·(Intrinsics.areEqual(value4,·(Object)Boolean.FALSE))·{ |
181 | ················userSet·=·grantPermissionsViewModel$GroupState3.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().getBackground().isUserSet(); | 180 | ················userSet·=·grantPermissionsViewModel$GroupState3.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().getBackground().isUserSet(); |
182 | ················b3·=·true; | 181 | ················b3·=·true; |
183 | ············} | 182 | ············} |
184 | ············else·{ | 183 | ············else·{ |
185 | ················userSet·=·false; | 184 | ················userSet·=·false; |
186 | ················b3·=·false; | 185 | ················b3·=·false; |
187 | ············} | 186 | ············} |
188 | ············final·int·initialCapacity·=·11; | 187 | ············final·int·initialCapacity·=·11; |
Offset 192, 41 lines modified | Offset 191, 41 lines modified |
192 | ············} | 191 | ············} |
193 | ············final·Boolean·true·=·Boolean.TRUE; | 192 | ············final·Boolean·true·=·Boolean.TRUE; |
194 | ············list.set(0,·true); | 193 | ············list.set(0,·true); |
195 | ············list.set(3,·true); | 194 | ············list.set(3,·true); |
196 | ············list.set(5,·Utils.supportsOneTimeGrant(s)); | 195 | ············list.set(5,·Utils.supportsOneTimeGrant(s)); |
197 | ············GrantPermissionsViewModel$Companion$RequestMessage·grantPermissionsViewModel$Companion$RequestMessage·=·GrantPermissionsViewModel$Companion$RequestMessage.FG_MESSAGE; | 196 | ············GrantPermissionsViewModel$Companion$RequestMessage·grantPermissionsViewModel$Companion$RequestMessage·=·GrantPermissionsViewModel$Companion$RequestMessage.FG_MESSAGE; |
198 | ············final·GrantPermissionsViewModel$Companion$RequestMessage·no_MESSAGE·=·GrantPermissionsViewModel$Companion$RequestMessage.NO_MESSAGE; | 197 | ············final·GrantPermissionsViewModel$Companion$RequestMessage·no_MESSAGE·=·GrantPermissionsViewModel$Companion$RequestMessage.NO_MESSAGE; |
199 | ············final·int·targetSdkVersion·=·grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().getPackageInfo().getTargetSdkVersion(); | 198 | ············final·int·targetSdkVersion·=·grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().getPackageInfo().getTargetSdkVersion(); |
200 | ············final·Iterator<Map.Entry<Pair,·V>>·iterator3·=·iterator; | 199 | ············final·Iterator<Map.Entry<Pair,·V>>·iterator3·=·iterator; |
201 | ············while·(true)·{ | 200 | ············while·(true)·{ |
202 | ················GrantPermissionsViewModel$Companion$RequestMessage·grantPermissionsViewModel$Companion$RequestMessage2·=·null; | 201 | ················GrantPermissionsViewModel$Companion$RequestMessage·grantPermissionsViewModel$Companion$RequestMessage2·=·null; |
203 | ················Label_1522:·{ | 202 | ················Label_1522:·{ |
204 | ····················Label_1311:·{ | 203 | ····················Label_1311:·{ |
205 | ························Label_1305:·{ | 204 | ························Label_1305:·{ |
206 | ····························if·(targetSdkVersion·>=·30)·{ | 205 | ····························if·(targetSdkVersion·>=·30)·{ |
207 | ································if·(!booleanValue·&&·!grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().getHasPermWithBackgroundMode())·{ | 206 | ································if·(!booleanValue·&&·!grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().getHasPermWithBackgroundMode())·{ |
208 | ····································list.set(3,·b2·^·true); | 207 | ····································list.set(3,·b2·^·true); |
209 | ····································list.set(4,·b2); | 208 | ····································list.set(4,·b2); |
210 | ····································break·Label_1311; | 209 | ····································break·Label_1311; |
211 | ································} | 210 | ································} |
212 | ································if·(b)·{ | 211 | ································if·(b)·{ |
213 | ····································if·(!b3)·{ | 212 | ····································if·(!b3)·{ |
214 | ········································list.set(0,·Boolean.FALSE); | 213 | ········································list.set(0,·Boolean.FALSE); |
215 | ········································list.set(2,·true); | 214 | ········································list.set(2,·true); |
216 | ········································list.set(3,·b2·^·true); | 215 | ········································list.set(3,·b2·^·true); |
217 | ········································list.set(4,·b2); | 216 | ········································list.set(4,·b2); |
218 | ········································break·Label_1311; | 217 | ········································break·Label_1311; |
219 | ····································} | 218 | ····································} |
220 | ····································if·(!grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().getPermGroupName().equals("android.permission-group.CAMERA")·&&·!grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().getPermGroupName().equals("android.permission-group.MICROPHONE"))·{ | 219 | ····································if·(!grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().getPermGroupName().equals("android.permission-group.CAMERA")·&&·!grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().getPermGroupName().equals("android.permission-group.MICROPHONE"))·{ |
221 | ········································Log.e(this.LOG_TAG,·"For·R+·apps,·background·permissions·must·be·requested·after·foreground·permissions·are·already·granted"); | 220 | ········································Log.e(this.LOG_TAG,·"For·R+·apps,·background·permissions·must·be·requested·after·foreground·permissions·are·already·granted"); |
222 | ········································this.setValue((Object)null); | 221 | ········································this.setValue((Object)null); |
223 | ········································return; | 222 | ········································return; |
224 | ····································} | 223 | ····································} |
225 | ····································if·(grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().getPackageInfo().getTargetSdkVersion()·>=·31)·{ | 224 | ····································if·(grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().getPackageInfo().getTargetSdkVersion()·>=·31)·{ |
226 | ········································Log.e(this.LOG_TAG,·"For·S·apps,·background·permissions·must·be·requested·after·foreground·permissions·are·already·granted"); | 225 | ········································Log.e(this.LOG_TAG,·"For·S·apps,·background·permissions·must·be·requested·after·foreground·permissions·are·already·granted"); |
227 | ········································this.setValue((Object)null); | 226 | ········································this.setValue((Object)null); |
228 | ········································return; | 227 | ········································return; |
229 | ····································} | 228 | ····································} |
230 | ····································list.set(0,·Boolean.FALSE); | 229 | ····································list.set(0,·Boolean.FALSE); |
231 | ····································list.set(2,·true); | 230 | ····································list.set(2,·true); |
232 | ····································list.set(3,·b2·^·true); | 231 | ····································list.set(3,·b2·^·true); |
Offset 241, 15 lines modified | Offset 240, 15 lines modified |
241 | ····································if·(!b3)·{ | 240 | ····································if·(!b3)·{ |
242 | ········································this.setValue((Object)null); | 241 | ········································this.setValue((Object)null); |
243 | ········································return; | 242 | ········································return; |
244 | ····································} | 243 | ····································} |
245 | ····································value.add(new·GrantPermissionsViewModel$RequestInfo(permGroupInfo,·(List)null,·(List)null,·(GrantPermissionsViewModel$Companion$RequestMessage)null,·(GrantPermissionsViewModel$Companion$RequestMessage)null,·true,·30,·(DefaultConstructorMarker)null)); | 244 | ····································value.add(new·GrantPermissionsViewModel$RequestInfo(permGroupInfo,·(List)null,·(List)null,·(GrantPermissionsViewModel$Companion$RequestMessage)null,·(GrantPermissionsViewModel$Companion$RequestMessage)null,·true,·30,·(DefaultConstructorMarker)null)); |
246 | ································} | 245 | ································} |
247 | ····························} | 246 | ····························} |
248 | ····························else·if·(!booleanValue·&&·!grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().getHasPermWithBackgroundMode())·{ | 247 | ····························else·if·(!booleanValue·&&·!grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().getHasPermWithBackgroundMode())·{ |
249 | ································if·(!b·&&·!b3)·{ | 248 | ································if·(!b·&&·!b3)·{ |
250 | ····································this.setValue((Object)null); | 249 | ····································this.setValue((Object)null); |
251 | ····································return; | 250 | ····································return; |
252 | ································} | 251 | ································} |
253 | ································list.set(3,·b2·^·true); | 252 | ································list.set(3,·b2·^·true); |
254 | ································list.set(4,·b2); | 253 | ································list.set(4,·b2); |
255 | ································break·Label_1311; | 254 | ································break·Label_1311; |
Offset 266, 25 lines modified | Offset 265, 25 lines modified |
266 | ································break·Label_1311; | 265 | ································break·Label_1311; |
267 | ····························} | 266 | ····························} |
268 | ····························else·{ | 267 | ····························else·{ |
269 | ································if·(!b3)·{ | 268 | ································if·(!b3)·{ |
270 | ····································this.setValue((Object)null); | 269 | ····································this.setValue((Object)null); |
271 | ····································return; | 270 | ····································return; |
272 | ································} | 271 | ································} |
273 | ································if·(!grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().getForeground().isGranted())·{ | 272 | ································if·(!grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().getForeground().isGranted())·{ |
274 | ····································Log.e(this.LOG_TAG,·"Background·permissions·can't·be·requested·solely·before·foreground·permissions·are·granted."); | 273 | ····································Log.e(this.LOG_TAG,·"Background·permissions·can't·be·requested·solely·before·foreground·permissions·are·granted."); |
275 | ····································this.setValue((Object)null); | 274 | ····································this.setValue((Object)null); |
276 | ····································return; | 275 | ····································return; |
277 | ································} | 276 | ································} |
278 | ································grantPermissionsViewModel$Companion$RequestMessage·=·GrantPermissionsViewModel$Companion$RequestMessage.UPGRADE_MESSAGE; | 277 | ································grantPermissionsViewModel$Companion$RequestMessage·=·GrantPermissionsViewModel$Companion$RequestMessage.UPGRADE_MESSAGE; |
279 | ································final·Boolean·false·=·Boolean.FALSE; | 278 | ································final·Boolean·false·=·Boolean.FALSE; |
280 | ································list.set(0,·false); | 279 | ································list.set(0,·false); |
281 | ································list.set(3,·false); | 280 | ································list.set(3,·false); |
282 | ································list.set(5,·false); | 281 | ································list.set(5,·false); |
283 | ································if·(grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().isOneTime())·{ | 282 | ································if·(grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().isOneTime())·{ |
284 | ····································list.set(8,·userSet·^·true); | 283 | ····································list.set(8,·userSet·^·true); |
285 | ····································list.set(9,·userSet); | 284 | ····································list.set(9,·userSet); |
286 | ····································break·Label_1305; | 285 | ····································break·Label_1305; |
287 | ································} | 286 | ································} |
288 | ································list.set(6,·userSet·^·true); | 287 | ································list.set(6,·userSet·^·true); |
289 | ································list.set(7,·userSet); | 288 | ································list.set(7,·userSet); |
290 | ································break·Label_1305; | 289 | ································break·Label_1305; |
Offset 300, 134 lines modified | Offset 299, 122 lines modified |
300 | ················list.set(10,·grantPermissionsViewModel$Companion$RequestMessage2·!=·no_MESSAGE); | 299 | ················list.set(10,·grantPermissionsViewModel$Companion$RequestMessage2·!=·no_MESSAGE); |
301 | ················final·int·initialCapacity2·=·6; | 300 | ················final·int·initialCapacity2·=·6; |
302 | ················final·ArrayList·list2·=·new·ArrayList<Boolean>(initialCapacity2); | 301 | ················final·ArrayList·list2·=·new·ArrayList<Boolean>(initialCapacity2); |
303 | ················for·(int·j·=·0;·j·<·initialCapacity2;·++j)·{ | 302 | ················for·(int·j·=·0;·j·<·initialCapacity2;·++j)·{ |
304 | ····················list2.add(Boolean.FALSE); | 303 | ····················list2.add(Boolean.FALSE); |
305 | ················} | 304 | ················} |
306 | ················GrantPermissionsViewModel$Companion$RequestMessage·grantPermissionsViewModel$Companion$RequestMessage4·=·null; | 305 | ················GrantPermissionsViewModel$Companion$RequestMessage·grantPermissionsViewModel$Companion$RequestMessage4·=·null; |
307 | ················Label_2301:·{ | 306 | ················Label_2225:·{ |
308 | ····················Label_2297:·{ | 307 | ····················Label_2221:·{ |
309 | ························if·(Intrinsics.areEqual((Object)grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().getPermGroupName(),·(Object)"android.permission-group.LOCATION")·&&·UtilsKt.isLocationAccuracyEnabled())·{ | 308 | ························if·(Intrinsics.areEqual((Object)grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().getPermGroupName(),·(Object)"android.permission-group.LOCATION")·&&·UtilsKt.isLocationAccuracyEnabled()·&&·b)·{ |
310 | ····························final·LightPackageInfo·access$getPackageInfo$p·=·GrantPermissionsViewModel.access$getPackageInfo$p(this.this$0); | |
311 | ····························if·(access$getPackageInfo$p·==·null)·{ | |
312 | ································Intrinsics.throwUninitializedPropertyAccessException("packageInfo"); | |
313 | ································throw·null; | |
314 | ····························} | |
315 | ····························if·(access$getPackageInfo$p.getTargetSdkVersion()·>=·31·&&·b)·{ | |
316 | ································final·Boolean·true2·=·Boolean.TRUE; | 309 | ····························final·Boolean·true2·=·Boolean.TRUE; |
317 | ································list2.set(0,·true2); | 310 | ····························list2.set(0,·true2); |
318 | ································final·String·s3·=·"android.permission.ACCESS_COARSE_LOCATION"; | 311 | ····························final·String·s3·=·"android.permission.ACCESS_COARSE_LOCATION"; |
319 | ································GrantPermissionsViewModel$Companion$RequestMessage·grantPermissionsViewModel$Companion$RequestMessage3·=·null; | 312 | ····························GrantPermissionsViewModel$Companion$RequestMessage·grantPermissionsViewModel$Companion$RequestMessage3·=·null; |
320 | ································Label_2282:·{ | 313 | ····························Label_2214:·{ |
321 | ····································if·(grantPermissionsViewModel$GroupState2·!=·null)·{ | 314 | ································if·(grantPermissionsViewModel$GroupState2·!=·null)·{ |
322 | ········································final·List·affectedPermissions$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController·=·grantPermissionsViewModel$GroupState2.getAffectedPermissions$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController(); | 315 | ····································final·List·affectedPermissions$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController·=·grantPermissionsViewModel$GroupState2.getAffectedPermissions$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController(); |
323 | ········································final·String·s4·=·"android.permission.ACCESS_FINE_LOCATION"; | 316 | ····································final·String·s4·=·"android.permission.ACCESS_FINE_LOCATION"; |
324 | ········································if·(affectedPermissions$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController.contains(s4))·{ | 317 | ····································if·(affectedPermissions$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController.contains(s4))·{ |
325 | ············································final·LightPermission·lightPermission3·=·(LightPermission)grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().getAllPermissions().get(s3); | 318 | ········································final·LightPermission·lightPermission3·=·(LightPermission)grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().getAllPermissions().get(s3); |
| 319 | ········································Object·value5; |
| 320 | ········································if·(lightPermission3·==·null)·{ |
| 321 | ············································value5·=·null; |
| 322 | ········································} |
| 323 | ········································else·{ |
| 324 | ············································value5·=·lightPermission3.isGrantedIncludingAppOp(); |
| 325 | ········································} |
| 326 | ········································if·(Intrinsics.areEqual(value5,·(Object)true2))·{ |
| 327 | ············································list2.set(4,·true2); |
| 328 | ············································grantPermissionsViewModel$Companion$RequestMessage3·=·GrantPermissionsViewModel$Companion$RequestMessage.FG_FINE_LOCATION_MESSAGE; |
| 329 | ············································if·(lightPermission3.isOneTime())·{ |
| 330 | ················································list.set(2,·Boolean.FALSE); |
| 331 | ············································} |
| 332 | ············································break·Label_2214; |
| 333 | ········································} |
| 334 | ········································else·{ |
326 | ············································Object·value5; | 335 | ············································Object·value6; |
327 | ············································if·(lightPermission3·==·null)·{ | 336 | ············································if·(lightPermission3·==·null)·{ |
328 | ················································value5·=·null; | 337 | ················································value6·=·null; |
329 | ············································} | 338 | ············································} |
330 | ············································else·{ | 339 | ············································else·{ |
331 | ················································value5·=·lightPermission3.isGrantedIncludingAppOp(); | 340 | ················································value6·=·lightPermission3.isOneTime(); |
332 | ············································} | 341 | ············································} |
333 | ············································if·(Intrinsics.areEqual(value5,·(Object)true2))·{ | |
334 | ················································list2.set(4,·true2); | |
335 | ················································grantPermissionsViewModel$Companion$RequestMessage3·=·GrantPermissionsViewModel$Companion$RequestMessage.FG_FINE_LOCATION_MESSAGE; | |
336 | ················································if·(lightPermission3.isOneTime())·{ | |
337 | ····················································list.set(2,·Boolean.FALSE); | 342 | ············································final·Boolean·false2·=·Boolean.FALSE; |
| 343 | ············································if·(Intrinsics.areEqual(value6,·(Object)false2)·&&·!lightPermission3.isUserSet()·&&·!lightPermission3.isUserFixed())·{ |
| 344 | ················································GrantPermissionsViewModel.access$setFirstTimeRequestingFineAndCoarse$p(this.this$0,·true); |
338 | ················································} | 345 | ············································} |
| 346 | ············································list2.set(3,·true2); |
| 347 | ············································final·LightPermission·lightPermission4·=·(LightPermission)grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().getAllPermissions().get(s4); |
| 348 | ············································Object·value7; |
| 349 | ············································if·(lightPermission3·==·null)·{ |
339 | ················································break·Label_2282; | 350 | ················································value7·=·null; |
340 | ············································} | 351 | ············································} |
341 | ············································else·{ | 352 | ············································else·{ |
| 353 | ················································value7·=·lightPermission3.isSelectedLocationAccuracy(); |
342 | ················································if·(!grantPermissionsViewModel$GroupState2.getAffectedPermissions$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().contains(s3))·{ | |
343 | ····················································Log.e(this.LOG_TAG,·"ACCESS_FINE_LOCATION·must·be·requested·with·ACCESS_COARSE_LOCATION."); | |
344 | ····················································this.setValue((Object)null); | |
345 | ····················································return; | |
346 | ················································} | 354 | ············································} |
| 355 | ············································if·(Intrinsics.areEqual(value7,·(Object)false2))·{ |
347 | ················································Object·value6; | 356 | ················································Object·value8; |
348 | ················································if·(lightPermission3·==·null)·{ | 357 | ················································if·(lightPermission4·==·null)·{ |
349 | ····················································value6·=·null; | 358 | ····················································value8·=·null; |
350 | ················································} | |
351 | ················································else·{ | |
352 | ····················································value6·=·lightPermission3.isOneTime(); | |
353 | ················································} | |
354 | ················································final·Boolean·false2·=·Boolean.FALSE; | |
355 | ················································if·(Intrinsics.areEqual(value6,·(Object)false2)·&&·!lightPermission3.isUserSet()·&&·!lightPermission3.isUserFixed())·{ | |
356 | ····················································GrantPermissionsViewModel.access$setFirstTimeRequestingFineAndCoarse$p(this.this$0,·true); | |
357 | ················································} | |
358 | ················································list2.set(3,·true2); | |
359 | ················································final·LightPermission·lightPermission4·=·(LightPermission)grantPermissionsViewModel$GroupState.getGroup$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().getAllPermissions().get(s4); | |
360 | ················································Object·value7; | |
361 | ················································if·(lightPermission3·==·null)·{ | |
362 | ····················································value7·=·null; | |
363 | ················································} | 359 | ················································} |
364 | ················································else·{ | 360 | ················································else·{ |
365 | ····················································value7·=·lightPermission3.isSelectedLocationAccuracy(); | 361 | ····················································value8·=·lightPermission4.isSelectedLocationAccuracy(); |
366 | ················································} | 362 | ················································} |
367 | ················································if·(Intrinsics.areEqual(value7,·(Object)false2))·{ | 363 | ················································if·(Intrinsics.areEqual(value8,·(Object)false2))·{ |
368 | ····················································Object·value8; | |
369 | ····················································if·(lightPermission4·==·null)·{ | |
370 | ························································value8·=·null; | |
371 | ····················································} | |
372 | ····················································else·{ | |
373 | ························································value8·=·lightPermission4.isSelectedLocationAccuracy(); | |
374 | ····················································} | |
375 | ····················································if·(Intrinsics.areEqual(value8,·(Object)false2))·{ | |
376 | ························································if·(UtilsKt.getDefaultPrecision())·{ | 364 | ····················································if·(UtilsKt.getDefaultPrecision())·{ |
377 | ····························································list2.set(1,·true2); | |
378 | ····························································break·Label_2297; | |
379 | ························································} | |
380 | ························································list2.set(2,·true2); | 365 | ························································list2.set(1,·true2); |
381 | ························································break·Label_2297; | 366 | ························································break·Label_2221; |
382 | ····················································} | 367 | ····················································} |
| 368 | ····················································list2.set(2,·true2); |
| 369 | ····················································break·Label_2221; |
383 | ················································} | 370 | ················································} |
384 | ················································final·int·n·=·2; | |
385 | ················································Object·value9; | |
386 | ················································if·(lightPermission3·==·null)·{ | |
387 | ····················································value9·=·null; | |
388 | ················································} | |
389 | ················································else·{ | |
390 | ····················································value9·=·lightPermission3.isSelectedLocationAccuracy(); | |
391 | ················································} | |
392 | ················································if·(Intrinsics.areEqual(value9,·(Object)true2))·{ | |
393 | ····················································list2.set(n,·true2); | |
394 | ····················································break·Label_2297; | |
395 | ················································} | |
396 | ················································list2.set(1,·true2); | |
397 | ················································break·Label_2297; | |
398 | ············································} | 371 | ············································} |
| 372 | ············································final·int·n·=·2; |
| 373 | ············································Object·value9; |
| 374 | ············································if·(lightPermission3·==·null)·{ |
| 375 | ················································value9·=·null; |
| 376 | ············································} |
| 377 | ············································else·{ |
| 378 | ················································value9·=·lightPermission3.isSelectedLocationAccuracy(); |
| 379 | ············································} |
| 380 | ············································if·(Intrinsics.areEqual(value9,·(Object)true2))·{ |
| 381 | ················································list2.set(n,·true2); |
| 382 | ················································break·Label_2221; |
| 383 | ············································} |
| 384 | ············································list2.set(1,·true2); |
| 385 | ············································break·Label_2221; |
399 | ········································} | 386 | ········································} |
400 | ····································} | 387 | ····································} |
401 | ····································if·(grantPermissionsViewModel$GroupState2·==·null·||·!grantPermissionsViewModel$GroupState2.getAffectedPermissions$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController().contains(s3))·{ | |
402 | ········································break·Label_2297; | |
403 | ····································} | |
404 | ····································list2.set(5,·true2); | |
405 | ····································grantPermissionsViewModel$Companion$RequestMessage3·=·GrantPermissionsViewModel$Companion$RequestMessage.FG_COARSE_LOCATION_MESSAGE; | |
406 | ································} | 388 | ································} |
407 | ································grantPermissionsViewModel$Companion$RequestMessage4·=·grantPermissionsViewModel$Companion$RequestMessage3; | 389 | ································if·(grantPermissionsViewModel$GroupState2·==·null·||·!grantPermissionsViewModel$GroupState2.getAffectedPermissions$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController().contains(s3))·{ |
408 | ································break·Label_2301; | 390 | ····································break·Label_2221; |
| 391 | ································} |
| 392 | ································list2.set(5,·true2); |
| 393 | ································grantPermissionsViewModel$Companion$RequestMessage3·=·GrantPermissionsViewModel$Companion$RequestMessage.FG_COARSE_LOCATION_MESSAGE; |
409 | ····························} | 394 | ····························} |
| 395 | ····························grantPermissionsViewModel$Companion$RequestMessage4·=·grantPermissionsViewModel$Companion$RequestMessage3; |
| 396 | ····························break·Label_2225; |
410 | ························} | 397 | ························} |
411 | ····················} | 398 | ····················} |
412 | ····················grantPermissionsViewModel$Companion$RequestMessage4·=·grantPermissionsViewModel$Companion$RequestMessage; | 399 | ····················grantPermissionsViewModel$Companion$RequestMessage4·=·grantPermissionsViewModel$Companion$RequestMessage; |
413 | ················} | 400 | ················} |
414 | ················value.add(new·GrantPermissionsViewModel$RequestInfo(permGroupInfo,·(List)list,·(List)list2,·grantPermissionsViewModel$Companion$RequestMessage4,·grantPermissionsViewModel$Companion$RequestMessage2,·false,·32,·(DefaultConstructorMarker)null)); | 401 | ················value.add(new·GrantPermissionsViewModel$RequestInfo(permGroupInfo,·(List)list,·(List)list2,·grantPermissionsViewModel$Companion$RequestMessage4,·grantPermissionsViewModel$Companion$RequestMessage2,·false,·32,·(DefaultConstructorMarker)null)); |
415 | ················continue; | 402 | ················continue; |
416 | ············} | 403 | ············} |
417 | ········} | 404 | ········} |
418 | ········CollectionsKt.sortWith((List)value,·(Comparator)GrantPermissionsViewModel$requestInfosLiveData$1$getRequestInfosFromGroupStates$1.INSTANCE); | 405 | ········CollectionsKt.sortWith((List)value,·(Comparator)GrantPermissionsViewModel$requestInfosLiveData$1$getRequestInfosFromGroupStates$1.INSTANCE); |
419 | ········boolean·b4·=·false; | 406 | ········boolean·b4·=·false; |
420 | ········Label_2446:·{ | 407 | ········Label_2370:·{ |
421 | ············if·(!value.isEmpty())·{ | 408 | ············if·(!value.isEmpty())·{ |
422 | ················final·Iterator<Object>·iterator4·=·value.iterator(); | 409 | ················final·Iterator<Object>·iterator4·=·value.iterator(); |
423 | ················while·(iterator4.hasNext())·{ | 410 | ················while·(iterator4.hasNext())·{ |
424 | ····················if·(((GrantPermissionsViewModel$RequestInfo)iterator4.next()).getSendToSettingsImmediately())·{ | 411 | ····················if·(((GrantPermissionsViewModel$RequestInfo)iterator4.next()).getSendToSettingsImmediately())·{ |
425 | ························b4·=·true; | 412 | ························b4·=·true; |
426 | ························break·Label_2446; | 413 | ························break·Label_2370; |
427 | ····················} | 414 | ····················} |
428 | ················} | 415 | ················} |
429 | ············} | 416 | ············} |
430 | ············b4·=·false; | 417 | ············b4·=·false; |
431 | ········} | 418 | ········} |
432 | ········if·(b4·&&·value.size()·>·1)·{ | 419 | ········if·(b4·&&·value.size()·>·1)·{ |
433 | ············Log.e(this.LOG_TAG,·"For·R+·apps,·background·permissions·must·be·requested·individually"); | 420 | ············Log.e(this.LOG_TAG,·"For·R+·apps,·background·permissions·must·be·requested·individually"); |
Offset 435, 22 lines modified | Offset 422, 22 lines modified |
435 | ········} | 422 | ········} |
436 | ········this.setValue((Object)value); | 423 | ········this.setValue((Object)value); |
437 | ····} | 424 | ····} |
438 | ···· | 425 | ···· |
439 | ····protected·void·onUpdate()·{ | 426 | ····protected·void·onUpdate()·{ |
440 | ········final·Map·appPermGroupLiveDatas·=·this.appPermGroupLiveDatas; | 427 | ········final·Map·appPermGroupLiveDatas·=·this.appPermGroupLiveDatas; |
441 | ········final·boolean·empty·=·appPermGroupLiveDatas.isEmpty(); | 428 | ········final·boolean·empty·=·appPermGroupLiveDatas.isEmpty(); |
442 | ········final·int·state$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController·=·1; | 429 | ········final·int·state$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController·=·1; |
443 | ········int·n·=·0; | 430 | ········int·n·=·0; |
444 | ········Label_0085:·{ | 431 | ········Label_0085:·{ |
445 | ············if·(!empty)·{ | 432 | ············if·(!empty)·{ |
446 | ················final·Iterator<Map.Entry<K,·LightAppPermGroupLiveData>>·iterator·=·appPermGroupLiveDatas.entrySet().iterator(); | 433 | ················final·Iterator<Map.Entry<K,·LightAppPermGroupLiveData>>·iterator·=·appPermGroupLiveDatas.entrySet().iterator(); |
447 | ················while·(iterator.hasNext())·{ | 434 | ················while·(iterator.hasNext())·{ |
448 | ····················if·(((SmartUpdateMediatorLiveData)((Map.Entry<K,·LightAppPermGroupLiveData>)iterator.next()).getValue()).isStale())·{ | 435 | ····················if·(((SmartUpdateMediatorLiveData)((Map.Entry<K,·LightAppPermGroupLiveData>)iterator.next()).getValue()).isStale())·{ |
449 | ························n·=·state$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController; | 436 | ························n·=·state$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController; |
450 | ························break·Label_0085; | 437 | ························break·Label_0085; |
451 | ····················} | 438 | ····················} |
452 | ················} | 439 | ················} |
453 | ············} | 440 | ············} |
454 | ············n·=·0; | 441 | ············n·=·0; |
455 | ········} | 442 | ········} |
456 | ········if·(n·!=·0)·{ | 443 | ········if·(n·!=·0)·{ |
Offset 467, 22 lines modified | Offset 454, 22 lines modified |
467 | ················final·Map·access$getGroupStates$p·=·GrantPermissionsViewModel.access$getGroupStates$p(this.this$0); | 454 | ················final·Map·access$getGroupStates$p·=·GrantPermissionsViewModel.access$getGroupStates$p(this.this$0); |
468 | ················final·LinkedHashMap<Pair,·Object>·linkedHashMap·=·new·LinkedHashMap<Pair,·Object>(); | 455 | ················final·LinkedHashMap<Pair,·Object>·linkedHashMap·=·new·LinkedHashMap<Pair,·Object>(); |
469 | ················for·(final·Map.Entry<Pair,·V>·entry2·:·access$getGroupStates$p.entrySet())·{ | 456 | ················for·(final·Map.Entry<Pair,·V>·entry2·:·access$getGroupStates$p.entrySet())·{ |
470 | ····················if·(Intrinsics.areEqual(((Pair)entry2.getKey()).getFirst(),·(Object)str))·{ | 457 | ····················if·(Intrinsics.areEqual(((Pair)entry2.getKey()).getFirst(),·(Object)str))·{ |
471 | ························linkedHashMap.put(entry2.getKey(),·entry2.getValue()); | 458 | ························linkedHashMap.put(entry2.getKey(),·entry2.getValue()); |
472 | ····················} | 459 | ····················} |
473 | ················} | 460 | ················} |
474 | ················if·(((linkedHashMap.isEmpty()·?·1·:·0)·^·state$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController)·!=·0x0)·{ | 461 | ················if·(((linkedHashMap.isEmpty()·?·1·:·0)·^·state$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController)·!=·0x0)·{ |
475 | ····················for·(final·Map.Entry<Pair,·V>·entry3·:·linkedHashMap.entrySet())·{ | 462 | ····················for·(final·Map.Entry<Pair,·V>·entry3·:·linkedHashMap.entrySet())·{ |
476 | ························final·Pair·pair·=·(Pair)entry3.getKey(); | 463 | ························final·Pair·pair·=·(Pair)entry3.getKey(); |
477 | ························final·List·affectedPermissions$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController·=·((GrantPermissionsViewModel$GroupState)entry3.getValue()).getAffectedPermissions$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController(); | 464 | ························final·List·affectedPermissions$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController·=·((GrantPermissionsViewModel$GroupState)entry3.getValue()).getAffectedPermissions$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController(); |
478 | ························boolean·b·=·false; | 465 | ························boolean·b·=·false; |
479 | ························Label_0571:·{ | 466 | ························Label_0571:·{ |
480 | ····························if·(!(affectedPermissions$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController·instanceof·Collection)·||·!((List<String>)affectedPermissions$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController).isEmpty())·{ | 467 | ····························if·(!(affectedPermissions$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController·instanceof·Collection)·||·!((List<String>)affectedPermissions$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController).isEmpty())·{ |
481 | ································final·Iterator<Object>·iterator5·=·((List<String>)affectedPermissions$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController).iterator(); | 468 | ································final·Iterator<Object>·iterator5·=·((List<String>)affectedPermissions$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController).iterator(); |
482 | ································while·(iterator5.hasNext())·{ | 469 | ································while·(iterator5.hasNext())·{ |
483 | ····································final·LightPermission·lightPermission·=·(LightPermission)lightAppPermGroup.getPermissions().get(iterator5.next()); | 470 | ····································final·LightPermission·lightPermission·=·(LightPermission)lightAppPermGroup.getPermissions().get(iterator5.next()); |
484 | ····································Object·value; | 471 | ····································Object·value; |
485 | ····································if·(lightPermission·==·null)·{ | 472 | ····································if·(lightPermission·==·null)·{ |
486 | ········································value·=·null; | 473 | ········································value·=·null; |
487 | ····································} | 474 | ····································} |
488 | ····································else·{ | 475 | ····································else·{ |
Offset 490, 25 lines modified | Offset 477, 25 lines modified |
490 | ····································} | 477 | ····································} |
491 | ····································if·(!Intrinsics.areEqual(value,·(Object)Boolean.TRUE))·{ | 478 | ····································if·(!Intrinsics.areEqual(value,·(Object)Boolean.TRUE))·{ |
492 | ········································b·=·false; | 479 | ········································b·=·false; |
493 | ········································break·Label_0571; | 480 | ········································break·Label_0571; |
494 | ····································} | 481 | ····································} |
495 | ································} | 482 | ································} |
496 | ····························} | 483 | ····························} |
497 | ····························b·=·(state$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController·!=·0); | 484 | ····························b·=·(state$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController·!=·0); |
498 | ························} | 485 | ························} |
499 | ························if·(b)·{ | 486 | ························if·(b)·{ |
500 | ····························final·GrantPermissionsViewModel$GroupState·grantPermissionsViewModel$GroupState·=·(GrantPermissionsViewModel$GroupState)GrantPermissionsViewModel.access$getGroupStates$p(this.this$0).get(pair); | 487 | ····························final·GrantPermissionsViewModel$GroupState·grantPermissionsViewModel$GroupState·=·(GrantPermissionsViewModel$GroupState)GrantPermissionsViewModel.access$getGroupStates$p(this.this$0).get(pair); |
501 | ····························Intrinsics.checkNotNull((Object)grantPermissionsViewModel$GroupState); | 488 | ····························Intrinsics.checkNotNull((Object)grantPermissionsViewModel$GroupState); |
502 | ····························grantPermissionsViewModel$GroupState.setState$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController(state$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController); | 489 | ····························grantPermissionsViewModel$GroupState.setState$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController(state$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController); |
503 | ························} | 490 | ························} |
504 | ····················} | 491 | ····················} |
505 | ················} | 492 | ················} |
506 | ················else·{ | 493 | ················else·{ |
507 | ····················n2·=·state$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController; | 494 | ····················n2·=·state$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController; |
508 | ················} | 495 | ················} |
509 | ············} | 496 | ············} |
510 | ············else·{ | 497 | ············else·{ |
511 | ················if·(lightAppPermGroup·==·null)·{ | 498 | ················if·(lightAppPermGroup·==·null)·{ |
512 | ····················final·String·log_TAG·=·this.LOG_TAG; | 499 | ····················final·String·log_TAG·=·this.LOG_TAG; |
513 | ····················final·StringBuilder·sb·=·new·StringBuilder(); | 500 | ····················final·StringBuilder·sb·=·new·StringBuilder(); |
514 | ····················sb.append("Group·"); | 501 | ····················sb.append("Group·"); |
Offset 517, 21 lines modified | Offset 504, 21 lines modified |
517 | ····················sb.append(str); | 504 | ····················sb.append(str); |
518 | ····················sb.append("·invalid"); | 505 | ····················sb.append("·invalid"); |
519 | ····················Log.e(log_TAG,·sb.toString()); | 506 | ····················Log.e(log_TAG,·sb.toString()); |
520 | ················} | 507 | ················} |
521 | ················final·GrantPermissionsViewModel$GroupState·grantPermissionsViewModel$GroupState2·=·(GrantPermissionsViewModel$GroupState)GrantPermissionsViewModel.access$getGroupStates$p(this.this$0).get(TuplesKt.to((Object)str,·(Object)Boolean.TRUE)); | 508 | ················final·GrantPermissionsViewModel$GroupState·grantPermissionsViewModel$GroupState2·=·(GrantPermissionsViewModel$GroupState)GrantPermissionsViewModel.access$getGroupStates$p(this.this$0).get(TuplesKt.to((Object)str,·(Object)Boolean.TRUE)); |
522 | ················final·int·n3·=·3; | 509 | ················final·int·n3·=·3; |
523 | ················if·(grantPermissionsViewModel$GroupState2·!=·null)·{ | 510 | ················if·(grantPermissionsViewModel$GroupState2·!=·null)·{ |
524 | ····················grantPermissionsViewModel$GroupState2.setState$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController(n3); | 511 | ····················grantPermissionsViewModel$GroupState2.setState$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController(n3); |
525 | ················} | 512 | ················} |
526 | ················final·GrantPermissionsViewModel$GroupState·grantPermissionsViewModel$GroupState3·=·(GrantPermissionsViewModel$GroupState)GrantPermissionsViewModel.access$getGroupStates$p(this.this$0).get(TuplesKt.to((Object)str,·(Object)Boolean.FALSE)); | 513 | ················final·GrantPermissionsViewModel$GroupState·grantPermissionsViewModel$GroupState3·=·(GrantPermissionsViewModel$GroupState)GrantPermissionsViewModel.access$getGroupStates$p(this.this$0).get(TuplesKt.to((Object)str,·(Object)Boolean.FALSE)); |
527 | ················if·(grantPermissionsViewModel$GroupState3·==·null)·{ | 514 | ················if·(grantPermissionsViewModel$GroupState3·==·null)·{ |
528 | ····················continue; | 515 | ····················continue; |
529 | ················} | 516 | ················} |
530 | ················grantPermissionsViewModel$GroupState3.setState$packages__modules__Permission__PermissionController__android_common_GooglePermissionController_apex30__PermissionController(n3); | 517 | ················grantPermissionsViewModel$GroupState3.setState$packages__modules__Permission__PermissionController__android_common_apex30__PermissionController(n3); |
531 | ············} | 518 | ············} |
532 | ········} | 519 | ········} |
533 | ········if·(n2·!=·0)·{ | 520 | ········if·(n2·!=·0)·{ |
534 | ············final·GrantPermissionsViewModel·this$0·=·this.this$0; | 521 | ············final·GrantPermissionsViewModel·this$0·=·this.this$0; |
535 | ············final·Map·appPermGroupLiveDatas2·=·this.appPermGroupLiveDatas; | 522 | ············final·Map·appPermGroupLiveDatas2·=·this.appPermGroupLiveDatas; |
536 | ············final·ArrayList<LightAppPermGroup>·list·=·new·ArrayList<LightAppPermGroup>(); | 523 | ············final·ArrayList<LightAppPermGroup>·list·=·new·ArrayList<LightAppPermGroup>(); |
537 | ············final·Iterator<Map.Entry<K,·LightAppPermGroupLiveData>>·iterator6·=·appPermGroupLiveDatas2.entrySet().iterator(); | 524 | ············final·Iterator<Map.Entry<K,·LightAppPermGroupLiveData>>·iterator6·=·appPermGroupLiveDatas2.entrySet().iterator(); |