forked from SunRain/android_frameworks_base
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Ic5871a9cc4874f33181dfac14e25a89499c182f2
- Loading branch information
Showing
1 changed file
with
15 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters