| | | |
Offset 151, 51 lines modified | Offset 151, 51 lines modified |
151 | ········} | 151 | ········} |
152 | ········if·((n·&·0x2)·!=·0x0·&&·this.mGroup.getBackgroundPermissions()·!=·null)·{ | 152 | ········if·((n·&·0x2)·!=·0x0·&&·this.mGroup.getBackgroundPermissions()·!=·null)·{ |
153 | ············hasGrantedByDefaultPermission·|=·this.mGroup.getBackgroundPermissions().hasGrantedByDefaultPermission(); | 153 | ············hasGrantedByDefaultPermission·|=·this.mGroup.getBackgroundPermissions().hasGrantedByDefaultPermission(); |
154 | ········} | 154 | ········} |
155 | ········final·String·access$000·=·PermissionPreference$DefaultDenyDialog.access$000(); | 155 | ········final·String·access$000·=·PermissionPreference$DefaultDenyDialog.access$000(); |
156 | ········int·n2; | 156 | ········int·n2; |
157 | ········if·(hasGrantedByDefaultPermission)·{ | 157 | ········if·(hasGrantedByDefaultPermission)·{ |
158 | ············n2·=·2131886491; | 158 | ············n2·=·2131886540; |
159 | ········} | 159 | ········} |
160 | ········else·{ | 160 | ········else·{ |
161 | ············n2·=·2131886359; | 161 | ············n2·=·2131886368; |
162 | ········} | 162 | ········} |
163 | ········arguments.putInt(access$000,·n2); | 163 | ········arguments.putInt(access$000,·n2); |
164 | ········arguments.putString(PermissionPreference$DefaultDenyDialog.access$100(),·((Preference)this).getKey()); | 164 | ········arguments.putString(PermissionPreference$DefaultDenyDialog.access$100(),·((Preference)this).getKey()); |
165 | ········arguments.putInt(PermissionPreference$DefaultDenyDialog.access$200(),·n); | 165 | ········arguments.putInt(PermissionPreference$DefaultDenyDialog.access$200(),·n); |
166 | ········final·PermissionPreference$DefaultDenyDialog·permissionPreference$DefaultDenyDialog·=·new·PermissionPreference$DefaultDenyDialog(); | 166 | ········final·PermissionPreference$DefaultDenyDialog·permissionPreference$DefaultDenyDialog·=·new·PermissionPreference$DefaultDenyDialog(); |
167 | ········((Fragment)permissionPreference$DefaultDenyDialog).setArguments(arguments); | 167 | ········((Fragment)permissionPreference$DefaultDenyDialog).setArguments(arguments); |
168 | ········((DialogFragment)permissionPreference$DefaultDenyDialog).show(((Fragment)this.mFragment).getChildFragmentManager().beginTransaction(),·"denyDefault"); | 168 | ········((DialogFragment)permissionPreference$DefaultDenyDialog).show(((Fragment)this.mFragment).getChildFragmentManager().beginTransaction(),·"denyDefault"); |
169 | ····} | 169 | ····} |
170 | ···· | 170 | ···· |
171 | ····private·void·updateSummaryForFixedByPolicyPermissionGroup()·{ | 171 | ····private·void·updateSummaryForFixedByPolicyPermissionGroup()·{ |
172 | ········final·RestrictedLockUtils$EnforcedAdmin·admin·=·this.getAdmin(); | 172 | ········final·RestrictedLockUtils$EnforcedAdmin·admin·=·this.getAdmin(); |
173 | ········final·AppPermissionGroup·backgroundPermissions·=·this.mGroup.getBackgroundPermissions(); | 173 | ········final·AppPermissionGroup·backgroundPermissions·=·this.mGroup.getBackgroundPermissions(); |
174 | ········final·boolean·b·=·admin·!=·null; | 174 | ········final·boolean·b·=·admin·!=·null; |
175 | ········if·(this.isSystemFixed())·{ | 175 | ········if·(this.isSystemFixed())·{ |
176 | ············((Preference)this).setSummary(2131886420); | 176 | ············((Preference)this).setSummary(2131886435); |
177 | ········} | 177 | ········} |
178 | ········else·{ | 178 | ········else·{ |
179 | ············final·boolean·foregroundDisabledByPolicy·=·this.isForegroundDisabledByPolicy(); | 179 | ············final·boolean·foregroundDisabledByPolicy·=·this.isForegroundDisabledByPolicy(); |
180 | ············final·int·summary·=·2131886422; | 180 | ············final·int·summary·=·2131886437; |
181 | ············if·(foregroundDisabledByPolicy)·{ | 181 | ············if·(foregroundDisabledByPolicy)·{ |
182 | ················if·(b)·{ | 182 | ················if·(b)·{ |
183 | ····················((Preference)this).setSummary(2131886235); | 183 | ····················((Preference)this).setSummary(2131886242); |
184 | ················} | 184 | ················} |
185 | ················else·{ | 185 | ················else·{ |
186 | ····················((Preference)this).setSummary(summary); | 186 | ····················((Preference)this).setSummary(summary); |
187 | ················} | 187 | ················} |
188 | ············} | 188 | ············} |
189 | ············else·{ | 189 | ············else·{ |
190 | ················final·boolean·policyFullyFixed·=·this.isPolicyFullyFixed(); | 190 | ················final·boolean·policyFullyFixed·=·this.isPolicyFullyFixed(); |
191 | ················final·int·n·=·2131886417; | 191 | ················final·int·n·=·2131886432; |
192 | ················final·int·n2·=·2131886419; | 192 | ················final·int·n2·=·2131886434; |
193 | ················if·(policyFullyFixed)·{ | 193 | ················if·(policyFullyFixed)·{ |
194 | ····················final·int·n3·=·2131886236; | 194 | ····················final·int·n3·=·2131886243; |
195 | ····················if·(backgroundPermissions·==·null)·{ | 195 | ····················if·(backgroundPermissions·==·null)·{ |
196 | ························if·(b)·{ | 196 | ························if·(b)·{ |
197 | ····························((Preference)this).setSummary(n3); | 197 | ····························((Preference)this).setSummary(n3); |
198 | ························} | 198 | ························} |
199 | ························else·{ | 199 | ························else·{ |
200 | ····························((Preference)this).setSummary(summary); | 200 | ····························((Preference)this).setSummary(summary); |
201 | ························} | 201 | ························} |
Offset 214, 25 lines modified | Offset 214, 25 lines modified |
214 | ····················else·{ | 214 | ····················else·{ |
215 | ························((Preference)this).setSummary(n2); | 215 | ························((Preference)this).setSummary(n2); |
216 | ····················} | 216 | ····················} |
217 | ················} | 217 | ················} |
218 | ················else·if·(this.isBackgroundPolicyFixed())·{ | 218 | ················else·if·(this.isBackgroundPolicyFixed())·{ |
219 | ····················if·(backgroundPermissions.areRuntimePermissionsGranted())·{ | 219 | ····················if·(backgroundPermissions.areRuntimePermissionsGranted())·{ |
220 | ························if·(b)·{ | 220 | ························if·(b)·{ |
221 | ····························((Preference)this).setSummary(2131886416); | 221 | ····························((Preference)this).setSummary(2131886431); |
222 | ························} | 222 | ························} |
223 | ························else·{ | 223 | ························else·{ |
224 | ····························((Preference)this).setSummary(2131886418); | 224 | ····························((Preference)this).setSummary(2131886433); |
225 | ························} | 225 | ························} |
226 | ····················} | 226 | ····················} |
227 | ····················else·if·(b)·{ | 227 | ····················else·if·(b)·{ |
228 | ························((Preference)this).setSummary(2131886414); | 228 | ························((Preference)this).setSummary(2131886429); |
229 | ····················} | 229 | ····················} |
230 | ····················else·{ | 230 | ····················else·{ |
231 | ························((Preference)this).setSummary(2131886415); | 231 | ························((Preference)this).setSummary(2131886430); |
232 | ····················} | 232 | ····················} |
233 | ················} | 233 | ················} |
234 | ················else·if·(this.isForegroundPolicyFixed())·{ | 234 | ················else·if·(this.isForegroundPolicyFixed())·{ |
235 | ····················if·(b)·{ | 235 | ····················if·(b)·{ |
236 | ························((Preference)this).setSummary(n); | 236 | ························((Preference)this).setSummary(n); |
237 | ····················} | 237 | ····················} |
238 | ····················else·{ | 238 | ····················else·{ |
Offset 252, 41 lines modified | Offset 252, 41 lines modified |
252 | ············if·(!((Permission)permissions.get(i)).isGrantedIncludingAppOp())·{ | 252 | ············if·(!((Permission)permissions.get(i)).isGrantedIncludingAppOp())·{ |
253 | ················++n; | 253 | ················++n; |
254 | ············} | 254 | ············} |
255 | ············++i; | 255 | ············++i; |
256 | ········} | 256 | ········} |
257 | ········int·n2; | 257 | ········int·n2; |
258 | ········if·(n·==·0)·{ | 258 | ········if·(n·==·0)·{ |
259 | ············n2·=·2131886409; | 259 | ············n2·=·2131886424; |
260 | ········} | 260 | ········} |
261 | ········else·if·(n·==·size)·{ | 261 | ········else·if·(n·==·size)·{ |
262 | ············n2·=·2131886407; | 262 | ············n2·=·2131886422; |
263 | ········} | 263 | ········} |
264 | ········else·{ | 264 | ········else·{ |
265 | ············n2·=·2131886408; | 265 | ············n2·=·2131886423; |
266 | ········} | 266 | ········} |
267 | ········((Preference)this).setSummary((CharSequence)((Preference)this).getContext().getString(n2,·new·Object[]·{·n·})); | 267 | ········((Preference)this).setSummary((CharSequence)((Preference)this).getContext().getString(n2,·new·Object[]·{·n·})); |
268 | ····} | 268 | ····} |
269 | ···· | 269 | ···· |
270 | ····private·void·updateSummaryForPermissionGroupWithBackgroundPermission()·{ | 270 | ····private·void·updateSummaryForPermissionGroupWithBackgroundPermission()·{ |
271 | ········final·AppPermissionGroup·backgroundPermissions·=·this.mGroup.getBackgroundPermissions(); | 271 | ········final·AppPermissionGroup·backgroundPermissions·=·this.mGroup.getBackgroundPermissions(); |
272 | ········if·(this.mGroup.areRuntimePermissionsGranted())·{ | 272 | ········if·(this.mGroup.areRuntimePermissionsGranted())·{ |
273 | ············final·int·n·=·2131886387; | 273 | ············final·int·n·=·2131886402; |
274 | ············if·(backgroundPermissions·==·null)·{ | 274 | ············if·(backgroundPermissions·==·null)·{ |
275 | ················((Preference)this).setSummary(n); | 275 | ················((Preference)this).setSummary(n); |
276 | ············} | 276 | ············} |
277 | ············else·if·(backgroundPermissions.areRuntimePermissionsGranted())·{ | 277 | ············else·if·(backgroundPermissions.areRuntimePermissionsGranted())·{ |
278 | ················((Preference)this).setSummary(2131886385); | 278 | ················((Preference)this).setSummary(2131886400); |
279 | ············} | 279 | ············} |
280 | ············else·{ | 280 | ············else·{ |
281 | ················((Preference)this).setSummary(n); | 281 | ················((Preference)this).setSummary(n); |
282 | ············} | 282 | ············} |
283 | ········} | 283 | ········} |
284 | ········else·{ | 284 | ········else·{ |
285 | ············((Preference)this).setSummary(2131886386); | 285 | ············((Preference)this).setSummary(2131886401); |
286 | ········} | 286 | ········} |
287 | ····} | 287 | ····} |
288 | ···· | 288 | ···· |
289 | ····void·onBackgroundAccessChosen(int·n)·{ | 289 | ····void·onBackgroundAccessChosen(int·n)·{ |
290 | ········final·AppPermissionGroup·backgroundPermissions·=·this.mGroup.getBackgroundPermissions(); | 290 | ········final·AppPermissionGroup·backgroundPermissions·=·this.mGroup.getBackgroundPermissions(); |
291 | ········final·int·n2·=·3; | 291 | ········final·int·n2·=·3; |
292 | ········final·int·n3·=·1; | 292 | ········final·int·n3·=·1; |
Offset 381, 15 lines modified | Offset 381, 15 lines modified |
381 | ············} | 381 | ············} |
382 | ············else·{ | 382 | ············else·{ |
383 | ················((Preference)this).setOnPreferenceChangeListener((Preference$OnPreferenceChangeListener)new·-$$Lambda$PermissionPreference$SGed4fnJEZp3rks01mJRPrKH2Tw(this)); | 383 | ················((Preference)this).setOnPreferenceChangeListener((Preference$OnPreferenceChangeListener)new·-$$Lambda$PermissionPreference$SGed4fnJEZp3rks01mJRPrKH2Tw(this)); |
384 | ············} | 384 | ············} |
385 | ········} | 385 | ········} |
386 | ········else·{ | 386 | ········else·{ |
387 | ············if·(admin·!=·null)·{ | 387 | ············if·(admin·!=·null)·{ |
388 | ················((Preference)this).setWidgetLayoutResource(2131558630); | 388 | ················((Preference)this).setWidgetLayoutResource(2131558632); |
389 | ················((Preference)this).setOnPreferenceClickListener((Preference$OnPreferenceClickListener)new·-$$Lambda$PermissionPreference$AQFJAwBiulFQWlhG5Kek5T5D84w(this,·admin)); | 389 | ················((Preference)this).setOnPreferenceClickListener((Preference$OnPreferenceClickListener)new·-$$Lambda$PermissionPreference$AQFJAwBiulFQWlhG5Kek5T5D84w(this,·admin)); |
390 | ············} | 390 | ············} |
391 | ············else·{ | 391 | ············else·{ |
392 | ················((Preference)this).setEnabled(false); | 392 | ················((Preference)this).setEnabled(false); |
393 | ············} | 393 | ············} |
394 | ············this.updateSummaryForFixedByPolicyPermissionGroup(); | 394 | ············this.updateSummaryForFixedByPolicyPermissionGroup(); |
395 | ········} | 395 | ········} |