Commit 1ff134d
Clean up, simplify and fix AlarmTile class and logic
This commit cleans up the AlarmTile class by removing the unnecessary
listener on the alarm intent. It now listens only to the next alarm
setting value, which was fetched after receiving the intent anyway.
These changes also fix a bug that would cause the tile to not show up
after some actions, like reordering the tiles due to the visibility not
being set on tile creation.
Lastly, some minor code styling issues have been fixed.
Patch set CyanogenDefy#2: collapse onNextAlarmChanged into onChangeUri, remove
mEnabled, use TextUtils to check for string emptiness and mark
updateQuickSettings explicitly as public.
Change-Id: Ic5871a9cc4874f33181dfac14e25a89499c182f21 parent 6bb0132 commit 1ff134d
File tree
1 file changed
+15
-29
lines changed- packages/SystemUI/src/com/android/systemui/quicksettings
1 file changed
+15
-29
lines changedLines changed: 15 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| 10 | + | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 18 | + | |
22 | 19 | | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 26 | | |
34 | 27 | | |
35 | | - | |
36 | 28 | | |
37 | 29 | | |
38 | 30 | | |
| |||
42 | 34 | | |
43 | 35 | | |
44 | 36 | | |
45 | | - | |
| 37 | + | |
46 | 38 | | |
47 | 39 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 40 | + | |
53 | 41 | | |
54 | 42 | | |
55 | 43 | | |
56 | 44 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 45 | + | |
68 | 46 | | |
69 | 47 | | |
70 | 48 | | |
71 | 49 | | |
72 | | - | |
73 | | - | |
| 50 | + | |
| 51 | + | |
74 | 52 | | |
75 | 53 | | |
76 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
77 | 63 | | |
0 commit comments