-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit fee79ab
committed
Refactor icon frame handling in preferences
This commit removes the explicit `iconFrame` `FrameLayout` from `item_preference.xml` and updates the logic in `AndroidStudioFragment.java` and `SettingsFragment.java` to directly manage the visibility of the icon `ImageView`.
- In `AndroidStudioFragment.java`, removed references and visibility updates for `iconFrame`.
- In `SettingsFragment.java`, updated `syncAccessoryVisibility` to set the visibility of the icon directly instead of its parent `iconFrame`.
- In `item_preference.xml`, removed the `FrameLayout` with ID `@android:id/icon_frame` and moved its layout attributes to the `ShapeableImageView` with ID `@android:id/icon`.1 parent 3654f45 commit fee79ab
File tree
3 files changed
+13
-31
lines changed- app/src/main
- java/com/d4rk/androidtutorials/java/ui/screens
- android
- settings
- res/layout
3 files changed
+13
-31
lines changedLines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | - | ||
434 | 433 | | |
435 | 434 | | |
436 | 435 | | |
| |||
439 | 438 | | |
440 | 439 | | |
441 | 440 | | |
442 | - | ||
443 | 441 | | |
444 | 442 | | |
445 | 443 | | |
| |||
449 | 447 | | |
450 | 448 | | |
451 | 449 | | |
452 | - | ||
453 | - | ||
454 | - | ||
455 | 450 | | |
456 | 451 | | |
457 | - | ||
458 | - | ||
459 | - | ||
460 | 452 | | |
461 | 453 | | |
462 | 454 | | |
| |||
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | - | ||
321 | - | ||
322 | - | ||
323 | - | ||
320 | + | ||
321 | + | ||
322 | + | ||
324 | 323 | | |
325 | 324 | | |
326 | 325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | - | ||
21 | - | ||
22 | - | ||
23 | - | ||
24 | - | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
25 | 24 | | |
25 | + | ||
26 | + | ||
27 | + | ||
26 | 28 | | |
27 | - | ||
28 | - | ||
29 | - | ||
30 | - | ||
31 | - | ||
32 | - | ||
33 | - | ||
34 | - | ||
35 | - | ||
36 | - | ||
37 | - | ||
38 | - | ||
39 | - | ||
40 | - | ||
29 | + | ||
30 | + | ||
31 | + | ||
41 | 32 | | |
42 | 33 | | |
43 | 34 | | |
| |||
0 commit comments