Commit 239020e
committed
Show "no network" snackbar when tapping some settings
A couple of settings don't work properly when network is not available so this
commit adds a "guard", preventing those actions to continue and showing a
snackbar with a "no network" message, similar to what the PagesFragment has.
The settings affected are:
- Parent Page
To avoid the user selecting an invalid page as parent (that is not yet
published remotely), it's better to disable the access to this option while
offline to avoid issues.
- Author
The author list doesn't load properly while offline, showing a Dialog with
a "Loading..." message.1 parent 1b29103 commit 239020e
1 file changed
Lines changed: 25 additions & 0 deletions
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| 156 | + | |
152 | 157 | | |
153 | 158 | | |
154 | 159 | | |
| |||
573 | 578 | | |
574 | 579 | | |
575 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
576 | 586 | | |
577 | 587 | | |
578 | 588 | | |
| |||
687 | 697 | | |
688 | 698 | | |
689 | 699 | | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
690 | 705 | | |
691 | 706 | | |
692 | 707 | | |
| |||
1308 | 1323 | | |
1309 | 1324 | | |
1310 | 1325 | | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
1311 | 1335 | | |
1312 | 1336 | | |
| 1337 | + | |
1313 | 1338 | | |
1314 | 1339 | | |
1315 | 1340 | | |
0 commit comments