summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Automatic translation importstable/cm-12.0-YNG4NMichael Bestas2015-08-241-8/+8
| | | | | Change-Id: I41086630268e03f2ff4031f3142df8929b67683a JIRA: RM-154
* Automatic translation importTom Powell2015-08-2413-3/+249
| | | | | Change-Id: I34dfbd1a2568f8613890c28e180464f5c5ac1477 JIRA: RM-154
* Automatic translation importMichael Bestas2015-08-2415-3/+51
| | | | | Change-Id: Ia5e1f0d8c76384ffdb04aba601c56c9a34e48ff2 JIRA: RM-154
* DeskClock: Correctly reschedule alarms on system time changeAnnie Chin2015-06-092-13/+20
| | | | | | | | | | | | | | | | | | | Reported issue: AlarmManager would not properly reschedule repeat alarm if the user manually adjusted date/time to before the next scheduled instance of the alarm. Steps to repro issue: 1.Set an alarm for 18:00 when system time is 19:00. 2.Modify the system time to 17:50 3.Note that alarm does not fire at 18:00 Thanks to Guotao Deng for identification and initial fix. Based on this patch, and adapted for CM: https://android-review.googlesource.com/#/c/147815/ Change-Id: Ifa7b85ab93583afaf4a248e13d726997b68822ed (cherry picked from commit d31b7009f4a4818b538d9bfd3f76999da13af9b0)
* Automatic translation importMichael Bestas2015-06-0118-10/+56
| | | | Change-Id: I0893beafb2be588d2014aa462a73224080b11813
* Make new menu entry to link to cLock widget settings.Martin Brabham2015-05-153-0/+23
| | | | Change-Id: I13ca3156c34eccdd8f60d8585281ae0585aac58e
* Expose background colors for theming.Dave Kover2015-05-089-18/+100
| | | | | | | | | The background colors are currently defined as a hard coded array in Utils.java. This patch moves this array to cm_arrays.xml and exposes the colors of the array in cm_colors.xml for theming Change-Id: Id72867ee82edd28bc120223be96c34448d79f1ae (cherry picked from commit 03a553766991b37fd4a07248cacd3ba9339b8180)
* Automatic translation importMichael Bestas2015-05-021-0/+58
| | | | Change-Id: Ie08388de6681960f659eac36e9d121f0d9a7050f
* Automatic translation importMichael Bestas2015-04-175-24/+43
| | | | Change-Id: Ic759c91e323fb7aca533d3146ad663c3c6c7c59f
* DeskClock: re-write delayAlarm for intercepting alarms when in-callRaj Yengisetty2015-04-074-72/+155
| | | | | | | While the previous clean-up was necessary, it no longer meets the spec. This feature needs to trigger the alarm immediately after the call finishes. Change-Id: I71107277926c891f79b1e46fb27878994ac15ce0
* Automatic translation importMichael Bestas2015-04-071-6/+6
| | | | Change-Id: I61edf4f84b6955e0622923d25e3a793461da8bba
* Hide flip setting if the phone doesn't have the required hardware sensor.Martin Brabham2015-03-262-6/+35
| | | | | | (╯°□°)╯ sʞɔolɔ Change-Id: Iba38e37bffe91d0d5bd9bb8922b4c168386ebfd9
* TimerReceiver: Correctly show the remaining time for 100 hoursDiogo Ferreira2015-03-261-3/+0
| | | | | | | | | | | | | | If you open the Clock countdown time and input 99h99m99s it will actually translate to 100 hours, 40 minutes and 39 seconds as expected. When leaving the app it will show a notification with the remaining time and if there are more than 100 hours it will fail to show that part and only show "40 minutes remaining". This patch fixes allows for 100 as a valid input. Change-Id: Ib3621691aaa3a449262cb9e3601d39283bb808f8
* Automatic translation importMichael Bestas2015-03-223-1/+117
| | | | Change-Id: I2aa7ca953980f1983cbcb65a53dba4d03ee3cb70
* Automatic translation importMichael Bestas2015-03-152-0/+95
| | | | Change-Id: I213fee9f3009771a35b5a48c3ea4037b167b07df
* Add city names for en(IN)stumped2015-03-051-3/+36
| | | | | | | These changes were missed in the merge from cm11 to cm12 modified: array.xml Change-Id: Iaae48da47923449ba52f87ba3f5557b6a73b97b6
* Automatic translation importMichael Bestas2015-02-285-3/+11
| | | | Change-Id: I5b6ee00336e7f750cb7bbbb5dbd4af10a5a2c2c5
* Automatic translation importstable/cm-12.0-YNG1IMichael Bestas2015-02-1911-29/+46
| | | | Change-Id: I142c2fdb0db3bc70bd039e1831d600528847d56d
* DeskClock: LT translationsFrant1c2015-02-161-1/+1
| | | | | | Small correction. Change-Id: I3779d1490219b3c554906e16753cbbceb9177200
* Automatic translation importMichael Bestas2015-02-1052-55/+5063
| | | | Change-Id: I19912e2e0f6570f24cc8445fe923ef973b64805e
* DeskClock: Protected against possible NPE from null uri.Adnan Begovic2015-02-101-0/+4
| | | | | | | | | | | | | From BUGDUMP-648323 (12-20150130-20150206) "java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.net.Uri.equals(java.lang.Object)' on a null object reference at com.android.deskclock.Utils.isRingToneUriValid(Utils.java:685) at com.android.deskclock.AlarmClockFragment$AlarmItemAdapter.bindView(AlarmClockFragment.java:1014) at com.android.deskclock.AlarmClockFragment$AlarmItemAdapter.getView(AlarmClockFragment.java:936) at android.widget.AbsListView.obtainView(AbsListView.java:2346) ... Change-Id: I092d4da0b29e400241eff82935b1f47080bc8d8a
* DeskClock: Handle alarm playback when the uri is not validRaj Yengisetty2015-02-051-0/+6
| | | | | | | | | | | | - If the user deletes the file that the alarm URI is pointing to recover gracefully by falling back to system default alarm when it's time to play the alarm. - This was already fixed if the user returns to the app before the alarm goes off and checks the UI, but if the user never goes back to the app after deleting the file, the playback is broken (will default to silent). Change-Id: I3896ae37b4c8252ba8d55d7660696a01cdc4d4df
* DeskClock: add playlist CN translationlinus_lee2015-01-301-0/+1
| | | | | | | Because of some internal deadlines, we will submit these manually but Crowdin eventually will overwrite these values Change-Id: I48ec96c34ba3f95b93541c4b64f5954167cbfd1d
* DeskClock: consolidate Alarm picker to one dialogRoman Birg2015-01-292-42/+14
| | | | | | | | If you picked ringtone, another dialog would pop up asking whether you wanted a ringtone or music. Instead we can combine this into one dialog. Change-Id: I7f33fef79bd86c5387ac96a955e4c3067d613d40 Signed-off-by: Roman Birg <roman@cyngn.com>
* DeskClock: add CN translationsemancebo2015-01-231-0/+23
| | | | | | | Because of some internal deadlines, we will submit these manually but Crowdin eventually will overwrite these values Change-Id: I149f447c463066fbaf691a38ed24eb1d547ceec7
* DeskClock: Handle invalid default alarm URIRaj Yengisetty2015-01-222-0/+44
| | | | | | | | | | | | | | | If the user sets an external file as their alarm and the file is subsequently deleted, DeskClock will go into a crash loop trying to reset to a default alarm uri (which was set to this external file). This patch will recover when this scenario is triggered, and the default uri is invalid. DeskClock will fetch and reset default alarm URI from the system property 'ro.config.alarm_alert'. If no such system property exists or the file cannot be found, it will pick a random alarm tone from MediaStore. Change-Id: I481876e0a25fbbb7ab1be8e3d7c9f8a94d66a43c
* DeskClock: Add some simplified chinese translationslinus_lee2015-01-211-0/+46
| | | | | | | Because of some internal deadlines, we will submit these manually but Crowdin eventually will overwrite these values Change-Id: Ib44c12a7698d0eec0f8a9f4a0e4a18ed9f4c8b2f
* DeskClock: Fix behavior when setting external media file for alarm toneRaj Yengisetty2015-01-193-2/+9
| | | | | | | | | | | | | | | Repro: 1) Set an alarm 2) Click on sound 3) Select Ringtone then select Music and press OK 4) In DocumentsUI picker, go to overflow menu and select "Show internal storage" 5) Open drawer and select Internal storage 6) Navigate to and select a music file e.g. "/Downloads/test.mp3" Observe that when the alarm rings, the music file selected isn't played, instead alarm falls back to fallback ringtone Change-Id: I6bf19c0e94fc5fe6415de9c291aa938f6043e380
* DeskClock: Set default world clocks per row to 1Raj Yengisetty2015-01-171-1/+1
| | | | | | | | | | This commit fixes an issue with adding world clocks 1.Launch Deskclock and add world cities 2.Select 2+ cities 3.When you return to the Deskclock view, note some cities are not visible Change-Id: Ib17ecdb3e9f4716aab05057fec090728f5bbb29a
* Fix picking music for alarms not workinglinus_lee2015-01-144-21/+41
| | | | | | | | 1) documentsui gives us a document contentprovider link so support that 2) if the same uri is picked, don't revoke the permissions 3) fix a different crash where if no args are passed the log crashes Change-Id: Ie67b252ebe5b81589199ab4502b11b62300c236c
* Do not disable alarm list when adding new alarmemancebo2015-01-131-9/+0
| | | | | | This fixes a bug where the alarm list cannot be scrolled after adding a new alarm Change-Id: I8159565ee9d37f289b0944a1a0ee7f881179bc27
* DeskClock: Fix actionbar icons in world clockMichael Bestas2015-01-119-2/+2
| | | | | | | Before: http://i.imgur.com/y59hXRe.png After: http://i.imgur.com/r3hchWG.png Change-Id: I981a432ff558c6abd8fe541c2be53b94853e8f34
* DeskClock: Fix text size and color of CM additionsblunden2015-01-106-65/+53
| | | | | | | | The profile and Increasing ringtone additions incorrectly have a larger text size than the rest of the options. Also fix alignment and text color inconsistencies. Change-Id: Id971ee8c98ec8b2d1cc9bace93efef2e39ca35b5
* DeskClock: Cleanup CAF stringsMichael Bestas2015-01-093-20/+5
| | | | | | | * Remove duplicates from mismerge * Remove Chinese CAF translations Change-Id: I29204d8356b3dcf0c33c11feec55659a186907af
* Fix incorrect World Clock city names and timezonesstumped2015-01-092-11/+7
| | | | | | | This change also adds Chennai and removes sorting of the list after reading from the XML Change-Id: I7697b414d43600a8c9580ff2fc8b79467ba600d3
* DeskClock: Add back Kiev to World ClockMichael Bestas2015-01-091-0/+3
| | | | Change-Id: Ice6779bd678e0c828419b9879b576dc6018da398
* Improve strings.Danny Baumann2015-01-092-10/+5
| | | | Change-Id: I3b10d40e8ed1524ea557d054e6dc9043831b985d
* Fix ClassCastExceptioncamcory2015-01-071-3/+3
| | | | | | Fixes FC when tring to change clock settings for Daydream in Settings Change-Id: Idfd859cab6530965b0030a62a85ca5387b93461e
* DeskClock: move CAF strings to cm_stringsVladislav Koldobskiy2015-01-042-16/+14
| | | | Change-Id: Ifdd80bb514ac5132d6aef262200c91c8079960b2
* DeskClock : Settings- Checkboxes to switchesx10f2014-12-293-10/+10
| | | | | | | As recommended: http://developer.android.com/design/building-blocks/switches.html This also adds some more design consistency. Change-Id: I91ed4168d6b61fa9192c151b5bafca713fafed9b
* DeskClock: Fix background notification color of the stopwatchlinus_lee2014-12-233-5/+3
| | | | | | | Remove colors and update the targetsdk so that it uses the proper colors as defined for L Change-Id: I2717995c0efa2cd8ac1e43bb3bbc6278b9fbfc8a
* DeskClock : If volume actions are set, always show activityDanesh M2014-12-191-1/+20
| | | | | | We need an upfront activity to handle the volume key presses. Change-Id: I29ee97e13c71195532732b9f5a13e8129840a928
* DeskClock: Make settings consistentMichael Bestas2014-12-104-34/+21
| | | | | | | | | * Move status bar icon setting to the bottom * Match volume button summary with shake/flip actions * Match shake/flip actions popup with volume buttons popup setting * Make dialog titles consistent Change-Id: If9000bc843b0feeab40118ee00bd61fbcddf4e9a
* DeskClock: Fixup summary texts for shake and flip actionsfuzz2014-12-081-1/+1
| | | | | | | This introduced on http://review.cyanogenmod.org/#/c/56698/ Change-Id: If2615210e3dfd15c510c1b18ec2f26a0b24a227d (cherry picked from commit 8fbfbe2afb15daa540621c32ba3ddbe6d05d2fdc)
* Fix internationalized repeat short days displaySam Mortimer2014-12-072-5/+7
| | | | | | | | | | | | | | | The following two commits result in incorrect short weekday labels when the first day of the week is not Sunday. Fix. AOSP lollipop commit: Repeat date UI selector for alarm Change-Id: I030c9468e030af8c86a16fc6f9289f83070ffd84 And CM commit: deskclock: internationalize repeat days layout Change-Id: I434510a0ad18c33d7e7f856d1db7eaff282d7197 Change-Id: Ib293852748afa5de009aae6af74d0d2fbd3ff267
* DeskClock : Fix alarm statusbar icon visibilityDanesh M2014-12-052-2/+10
| | | | Change-Id: Ib82aa6289ca6b54382b322a787f812964f191ce8
* DeskClock: Add back flip and shake actionsArtem Chep2014-12-043-0/+212
| | | | | | | | Cherry-picked and ported from: * http://review.cyanogenmod.org/#/c/29894/ Change-Id: I222b6cd53a95db6f8662e7aef52aa6922d8a5d6a Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* DeskClock: Bring back Multiplayer and add UI-side support for playlists.Kyrylo Mikos2014-11-177-81/+386
| | | | | | | | | The goal of MultiPlayer was behaving like Music Player: playing random songs, not repeating one random song infinitely. Also add UI-part for choosing playlists as a alarm. Change-Id: I893808421490094531130dfb683ad226df4c91ab
* Alarms: Fallback to defualt when uri is invalidClark Scheff2014-11-123-39/+54
| | | | | | | | | | This fixes an issue where the media is no longer in the media store but since the URI uses the "content" scheme it is deemed a valid URI even though the media is no longer available. We check if the content is actually available and if not we will fallback to the default ringtone. Change-Id: I7b77265dfbf410681a245b3b020d838f3d1c7eba
* deskclock: take persistent grants of external urisJorge Ruesga2014-11-122-1/+87
| | | | | | | | | The new storage api used by the DocumentProvider api only grants temporally the selected uris. This causes that after a reboot the access to the selected uri is denied. This changes reclaims a persistent read permission for the selected uri while in use by an alarm. Change-Id: I3dbdfd1c03ab9d302d559c62ae8311a43ce7b336 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>