Commit ba85d16
fix(slideshow) Use interface instead of EventBus
EventBus is considered deprecated by the maintainers and we want to get
rid of it eventually. So extending its usage is not the right approach.
Instead, a callback interface is defined. The pre-existing pattern of
looking up the enclosing activity via getTypedActivity() is used to find
the callback. Long-term, the getTypedActivity() might also be a pattern we
want to get rid of, but it would require a pretty thorough refactoring of
the FileDisplayActivity to make it work.
Signed-off-by: Philipp Hasper <[email protected]>1 parent c62cc28 commit ba85d16
File tree
4 files changed
+20
-47
lines changed- app/src/main/java/com/owncloud/android/ui
- activity
- dialog
- preview
4 files changed
+20
-47
lines changedLines changed: 8 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | 125 | | |
127 | 126 | | |
128 | 127 | | |
| |||
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
1456 | 1456 | | |
1457 | 1457 | | |
1458 | 1458 | | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
1459 | 1465 | | |
1460 | 1466 | | |
1461 | 1467 | | |
| |||
2764 | 2770 | | |
2765 | 2771 | | |
2766 | 2772 | | |
2767 | | - | |
2768 | | - | |
2769 | | - | |
2770 | | - | |
2771 | | - | |
2772 | 2773 | | |
2773 | 2774 | | |
2774 | 2775 | | |
| |||
2777 | 2778 | | |
2778 | 2779 | | |
2779 | 2780 | | |
2780 | | - | |
2781 | | - | |
2782 | | - | |
2783 | | - | |
2784 | | - | |
2785 | | - | |
2786 | | - | |
2787 | | - | |
2788 | | - | |
2789 | 2781 | | |
2790 | 2782 | | |
2791 | 2783 | | |
| |||
3036 | 3028 | | |
3037 | 3029 | | |
3038 | 3030 | | |
3039 | | - | |
3040 | | - | |
3041 | | - | |
3042 | | - | |
| 3031 | + | |
3043 | 3032 | | |
3044 | 3033 | | |
3045 | | - | |
3046 | 3034 | | |
3047 | 3035 | | |
3048 | 3036 | | |
| |||
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | | - | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | | - | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
Lines changed: 3 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
| |||
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
| 70 | + | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
213 | 211 | | |
214 | 212 | | |
215 | 213 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 214 | + | |
220 | 215 | | |
221 | 216 | | |
222 | | - | |
223 | 217 | | |
224 | 218 | | |
225 | 219 | | |
| |||
273 | 267 | | |
274 | 268 | | |
275 | 269 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | 270 | | |
282 | 271 | | |
283 | 272 | | |
| |||
418 | 407 | | |
419 | 408 | | |
420 | 409 | | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | 410 | | |
426 | 411 | | |
427 | 412 | | |
| |||
0 commit comments