Commit fe0380d
committed
warpdroid: address Copilot review on blank-URL guards and StrictMode
- StrictMode: guard detectUnbufferedIo() under SDK_INT >= O. The call
was unconditional and minSdk is 24, so debug builds on Android 7.x
would NoSuchMethodError on Application.onCreate.
- DrawerImageLoader.set: cancel any in-flight Glide request on the
recycled ImageView before showing the placeholder, so a stale
callback from a previous profile can't overwrite it.
- loadDrawerAvatar: blank avatar URL now plants the default avatar on
the toolbar navigation icon instead of returning silently and
leaving whatever icon was there from the previous profile.
- EditProfileActivity: blank avatar branch now sets the default avatar
drawable on the preview ImageView (the XML has no src fallback, so
users without an avatar previously saw an empty preview).1 parent 3b00f68 commit fe0380d
4 files changed
Lines changed: 45 additions & 22 deletions
File tree
- warpdroid/app/src/main/java/site/warpnet/warpdroid
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
211 | | - | |
212 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
213 | 221 | | |
214 | 222 | | |
215 | 223 | | |
| |||
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
583 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
584 | 587 | | |
| 588 | + | |
585 | 589 | | |
586 | 590 | | |
587 | 591 | | |
| |||
860 | 864 | | |
861 | 865 | | |
862 | 866 | | |
863 | | - | |
864 | 867 | | |
865 | 868 | | |
866 | 869 | | |
| |||
877 | 880 | | |
878 | 881 | | |
879 | 882 | | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
880 | 893 | | |
881 | 894 | | |
882 | 895 | | |
| |||
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
0 commit comments