summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Use DialerNext icon when availabled34d2015-09-251-0/+13
| | | | | Change-Id: I68518d94664f0ab9290e1a7ffb0ca955c5dfbf3a TICKET: CYNGNOS-1096
* Use correct URI for fonts in ThemeFragmentd34d2015-09-161-0/+1
| | | | | | | | | The component selector was fixed to show themes that are only fonts but they could not be selected in the theme fragment since it was still using the PreviewColumns.CONTENT_URI Change-Id: I4d54a8b72255794919e4884ba361c4f996b1af29 TICKET: CHOOSER-98
* Fix audibles not playing in component selectord34d2015-09-151-1/+1
| | | | | Change-Id: I4b6449184047626c45c83ccb2b8394fdc613e70f TICKET: HAM-666
* Use correct URI for fonts in component selectord34d2015-09-151-0/+2
| | | | | | | | | Fonts do not have previews so we need to use ThemesColumns.CONTENT_URI in order to get all installed fonts, otherwise we will only get fonts for themes that have previews, which omits font only themes. Change-Id: I0ccd31c9fecfd9eedb6631a497070e037b8bb52b TICKET: CHOOSER-98
* AppThemer: Remove theme list if non-nulld34d2015-09-151-0/+4
| | | | | Change-Id: I748612eb3e63b81a4d93e8bbd1c8aed22eeb524b TICKET: CHOOSER-96
* Catch exceptions when calling setOverScrollModed34d2015-09-111-0/+11
| | | | | | | | | | Some themes cause the chooser to crash after a theme change which is caused when a ScrollView attempts to set the over scroll mode. LockableScrollView overrides setOverScrollMode and if an exception occurs, sets the mode to OVER_SCROLL_NEVER. Change-Id: I6589f86ebd0ad8522b664a50acf6083875d5f438 TICKET: CYNGNOS-928
* Don't process touch events if being destroyedd34d2015-09-111-0/+2
| | | | | | | | This will prevent a user from releasing the FAB into the delete box and then quickly touch the FAB again, preventing it from being removed. Change-Id: I69eccf6a76534c21ce9800e75fbfd03537bc27d0
* AppThemer: System theme always has overlay for appd34d2015-09-101-8/+12
| | | | | | | | | | Whenever using app themer to switch an app to the system theme, the user is presented with a message stating that this theme does not explicitly overlay the current app. System theme is really an absence of a theme so we should not show this message when applying the system theme to an app. Change-Id: I4087744c325dcd07abffe9a893ecc8fa4c9f1e07
* AppThemer: Don't settle for a null ThemeConfigd34d2015-09-101-2/+10
| | | | | | | | | App themer needs to know what per app overlays are currently applied and that info resides in ThemeConfig so make sure we always have a valid ThemeConfig. Change-Id: I9541a06fd88c91fe950a69df71f8377e8c028ff5 TICKET: HAM-304
* Avoid IllegalStateException in loadStatusBar()d34d2015-09-041-2/+6
| | | | | | | | Check if wifiMarginIdx and clockColorIdx are valid indices and if not use some default values. Change-Id: I97bfc9ab4145d2aaeb155fa4ef77b0312e7431bc REF: CYNGNOS-845
* App themer UI updated34d2015-07-161-79/+68
| | | | | | | | | | 1) Fab is now a vector drawble 2) Theme list uses a white background with black text 3) Fab animation scales down and stays aligned to the side 4) Fab can be touched to dismiss list 5) Fab no longer snaps to delete box Change-Id: I0898b6e5d5d2862a27f92cbce9634899eb58896c
* Update iconography.Dave Kover2015-07-151-2/+0
| | | | | | | | | Change main icon from holoyolo to material. Switch to mipmap ref. Remove LargeIcon from notification as it clashes with the new icon. Update iconography in the chooser for App Themer and Store. Change-Id: I5b4d5c7eb8ee617caf0dd352540d44d29d5345f1 Ticket: DES-365
* Re-populate component selector when theme added/removedd34d2015-06-041-0/+40
| | | | | Change-Id: Ie8d3bba59bbf5333314594db01d96cc3a4d8aa50 REF: CHOOSER-94
* Introduce Theme VersioningRichard MacGregor2015-05-295-307/+419
| | | | | | | | | | | | | Move sql query construction into new class. Consolidate shared Loader_ID_* states across different classes. Include versioning to allow for certain functions to not be called, and sql queries not built if frameworks doesn't support them. Depends on: http://review.cyanogenmod.org/#/c/99452/ http://review.cyanogenmod.org/#/c/99600/ Change-Id: I8061f1894890fa7e2221e1d4f4c90c4ed503e3d1
* Show/Select any of the available wallpapersRichard MacGregor2015-05-264-44/+133
| | | | | | | | | | | Be able to show and select all (multiple if present) wallpapers from installed themes. Depends on: http://review.cyanogenmod.org/#/c/98951/ http://review.cyanogenmod.org/#/c/98905/ Change-Id: Ibd9c21c93c181a08b2052c4d4ce2b78690cfc969
* Don't restart loader if loader ID is invalidd34d2015-05-201-2/+6
| | | | Change-Id: I7d44c3e02c5679a775184f6646f754825a6dfa5c
* Allow chooser to use files instead of blobsRichard MacGregor2015-05-182-3/+31
| | | | | | | | | | | | | | This gives chooser the ability to use both older and newer versions of the themes provider. Older = blobs in previews table Newer = files paths in previews table Stable Branch depends on nothing. Master (12.1) depends on: http://review.cyanogenmod.org/#/c/98708/ http://review.cyanogenmod.org/#/c/98709/ Change-Id: I0e5d1ae85378d59d5f44deb9f6ef0a73e1a0f95b
* Revert "Improve PreviewsColumns Implementation"Richard MacGregor2015-05-164-288/+129
| | | | | | This reverts commit 0f177c589b3893437772d05d8349c8dc415a2db6. Change-Id: I22cd81586c10c27bcdc4ff8019dfb98945d2ca80
* Revert "Use files instead of blobs"Richard MacGregor2015-05-164-53/+27
| | | | | | This reverts commit d25b46108d55a2a81aa538f777bfeb8993f8a17f. Change-Id: Ieec2bd3a9aa1369270e8a25eebb898eb21a25c5a
* Use files instead of blobsRichard MacGregor2015-05-114-27/+53
| | | | | | | | | | | | | Previews columns now uses file paths instead of saving bitmap blobs in database. Depends on: http://review.cyanogenmod.org/#/c/96836/ http://review.cyanogenmod.org/#/c/97431/ http://review.cyanogenmod.org/#/c/97754/ http://gerrit.cyngn.com/#/c/11983/ Change-Id: Ie3ba8008f78b8e94dc1acf53e6b991a8311437dc
* Improve PreviewsColumns ImplementationRichard MacGregor2015-05-114-129/+288
| | | | | | | | | | | Previews columns now uses a key/value pair structure to allow for easier future support of multiple components per theme pack. Depends on: http://review.cyanogenmod.org/#/c/96836/ http://review.cyanogenmod.org/#/c/97431/ Change-Id: I9310a8ad038d6ac1a65b14f725b82255ad3718d3
* Use android.graphics.FontListParserd34d2015-05-061-14/+16
| | | | | | | | Use the newly exposed public parse method in FontListParser instead of the legacy parser included in the theme chooser. Change-Id: I148ac3d7eeafd976f6d1bf228c240c6632deeaff REF: CHOOSER-83
* Fix inconsistent component titles for default componentsd34d2015-04-291-0/+35
| | | | | Change-Id: I4f2fd8a39bb76f9655e5a9de430c74e55f797ae2 REF: TOMATOL-370
* AppThemer: Animate FAB in when App Themer clickedd34d2015-04-271-0/+24
| | | | | | | | When the user presses the app themer icon, the FAB would immediately show up on the screen. This patch animates it in rather than abruptly show it. Change-Id: I89bb198b36a1d6d66fc0cb0fb9b675f1f95e6463
* Remove direct references to private framework resourcesd34d2015-04-225-24/+72
| | | | | | | | This will allow us to distribute the chooser. Private resources were either redefined in our xml or reflection is used to retrieve these values in code. Change-Id: I8c901abef6a5492094d4b86752368625a385bb47
* Remove deprecated theme showcase for shop themesd34d2015-04-171-5/+14
| | | | | | | | | | Now that theme showcase is deprecated and the store is shipping on our devices, we no longer need the string for themes showcase and the code that relied on that. This patch adds a check for the theme store, even though it SHOULD be installed, and hides the shop themes button in this case. Change-Id: I89746914698305eb736c354440218d37dcdce02c
* Re-use existing typeface when setting to boldd34d2015-04-101-1/+1
| | | | | | | | | | | | We set the text for the "default" entry in the component selector to bold but pass in null for the typeface. This ends up using the DEFAULT_BOLD typeface rather than lato and can result in a native crash in libminikin. There is still an issue with fonts at the native layer but this patch helps mitigate the issue from crashing the chooser. Change-Id: I9e4cde2452c18d538db5d27ea2acf8c92ff27aad REF: THEMES-537
* Always add all components to apply when resetting themed34d2015-04-031-1/+1
| | | | | | | | | | If the user is resetting their currently applied theme we should include all components regardless if the provider states that component is already applied. This happens when certain items are changed outside of the chooser, i.e. audibles or wallpaper. Change-Id: Iccab7e5417a99f774007d5b327f7f3c2f8d8e467 REF: CHOOSER-14
* Return original wallpaper when cropping/resizing failsd34d2015-04-031-51/+56
| | | | | | | | | | | Some images have dimensions that don't work with the scaling/cropping methods. An IllegalArgumentException is thrown when this happens resulting in the background being the grayscale grid. This patch simply catches the exception and returns the original wallpaper so that the chooser can display it as the background. Change-Id: Ic0f8a021ee2e2dd32aeede05583cfc2fa25261c4 REF: CHOOSER-66
* AppThemer: Show toast when app not explicitly themedd34d2015-04-032-0/+31
| | | | | | | | | | If a theme is being applied to an app and the theme does not have an explicit overlay for the app, we display a toast indicating to the user that some things may not change. Change-Id: If0b4ab422a3b5c15fd531348a23828f9fcdd59e9 REF: CHOOSER-71 (cherry picked from commit 1d1c49502a56195018ac723329b71dd4b8a36a64)
* AppThemer: Don't handle touch event if disabledd34d2015-03-252-1/+2
| | | | | | | | While a theme is being applied we disable the theme list layout and make sure touch events are not handled when disabled. Change-Id: Idbdf5fe686bdd89db3019e71327f151694cb8473 REF: CHOOSER-68
* AppThemer: Don't make FAB visible during theme changed34d2015-03-251-10/+23
| | | | | | | | | The FAB will still receive touch events if it is visible, this patch keeps the FAB set to View.GONE until the theme change is finished, at which point it animates back in. Change-Id: I7219666176ff70d6b444a22b61de1dbebf86ae5f REF: CHOOSER-69
* Don't perform click when applying a themed34d2015-03-201-1/+1
| | | | | | | | | It was possible to get the apply overlay to come up while the theme is being applied, which is not desirable. This patch simply checks if a theme is being applied and if it is, skips the performClick() call. Change-Id: I2e841f372b87695de276e281219ce6b7aae59e3a
* Properly pad layouts when on screen nav is usedd34d2015-03-202-7/+22
| | | | | | | | This patch checks if the device has no hardware keys or if the user has enabled on screen navigation even though the device has hardware keys. Change-Id: Ie93280a275735567390e2cdc34a82d4de63a8450
* App Themer: Observe changes to themes databased34d2015-03-181-5/+33
| | | | | Change-Id: Ib61eedfaa50e9e6cfbba1e51ad4e3cea2b856edc REF: CHOOSER-62
* Don't show install notification for default themed34d2015-03-181-1/+3
| | | | | | | | | | Because of the new flow with the themes provider, we end up getting an ACTION_THEME_INSTALLED broadcast when the default theme gets added to the provider. Once a user gets through OOBE they will see the theme installed notification which is not desirable. Change-Id: Ic6c5d34e452a71c830f56917b235ec9a126d27c3 REF: OPO-131
* BootAni: Recreate bitmap when reusing failsd34d2015-03-181-1/+22
| | | | | | | | | If the inBitmap does not have enough bytes allocated to load in the newly decoded frame an IllegalArgumentException will be thrown. Instead of giving up here we can load in a new image instead. If this fails then we log it and continue as normal. Change-Id: Ibc11cde7aed9633552854a11a50924872a94fa53
* Remove old branding from iconography.Dave Kover2015-03-131-1/+1
| | | | | | | | Update launcher icon and remove the mark. Update ic_themestore to remove the old mark and turn resource into a vector drawable. Fix HDPI notification icon to be correct size. Change-Id: I3f12975a1e510c4e2bdbf668456b5370dcee9bcd
* Use provider's broadcasts for theme installs/removalsd34d2015-03-113-74/+9
| | | | Change-Id: I42f58ef75a45aa131c87baed0d0aeac5763e916c
* Send broadcast when theme chooser opened and theme removedd34d2015-03-111-0/+20
| | | | | | | | | | | | This introduces two new actions that will be broadcasted to the store, or any app that is granted the com.cyngn.themes.permission.THEMES_APP permission, which requires the same signature as the Theme Chooser. If a theme is uninstalled from the chooser, a broadcast is sent along with a String extra with the key "package" that identifies the package name of the theme being removed. Change-Id: I6b3f4e19ebb1b8d763d7e0038591fccbbe1809f2
* Use new RequestType when sending ThemeChangeRequestsd34d2015-03-112-1/+34
| | | | Change-Id: I3fb272c5614c8c61501eb96bee87eee8b9ad0df0
* Set FAB to GONE when showing listd34d2015-03-051-1/+8
| | | | | | | Since the FAB is above the list, it is possible for the user to move the FAB since it is still "VISIBLE" with an alpha of 0. Change-Id: Ib1780d213ecde680e1ba0790447586ac2c6cebe4
* Set min and max height for per app theme ListViewd34d2015-03-043-8/+71
| | | | Change-Id: I76a765fdb4f1efb462230a3b6a20436229d9c485
* Themes: Enhanced theming capabilities [3/3]Clark Scheff2015-02-276-19/+1223
| | | | | | | This is really per-app theming but the subject is being named the same as the open source commits to avoid confusion. Change-Id: I811463be11359d747065ad66f802a55e1ab7db08
* Add better error handling when loading audiblesd34d2015-02-091-7/+12
| | | | | | | | | | | We were checking if the ringtoneUri was null but not if the actual Ringtone returned for that uri was null. This patch handles that case and simply shows the "Add ...." so the user can add a valid audible. Change-Id: I4c2320c6ed7ccd825ffcec411bdffc858b08741e REF:TOMATO-186 (cherry picked from commit 77a2e801640bff65cf7b0d9fadb2364b9531579d)
* Disable launcher icon if Theme Store is installedd34d2015-01-271-0/+42
| | | | | | | | | This allows us to have one apk that can have a launcher icon if the Theme Store is not installed and if it is installed we can disable the theme chooser launcher icon. REF: CHOOSER-28 Change-Id: Id4c81ea7f68aa1491370d70fa29f3b5097e94488
* Iterate over mSelectedComponentsMap for getComponentsToApplyd34d2015-01-241-2/+2
| | | | | | | | | | | If mSelectedComponentsMap has a component that is not in mCurrentTheme it will not get added to componentsToApply and therefore will not be applied. We now iterate over mSelectedComponentsMap and add any component that is from a different package than mCurrentTheme or if that component does not exist in mCurrentTheme Change-Id: I2df1c06a8de807c63425fa15d7605db34026b32d REF:CHOOSER-27
* Add legacy theme tag and warning messageClark Scheff2015-01-152-0/+36
| | | | | | | | | This adds a tag at the top of any theme that is designed for an older version of CM and presents the user with a message in the apply overlay when they go to apply a theme designed for an older version of CM. Change-Id: I7d60f14cbfc376890e06dbf1358745e4490be961
* Show user's current battery styleClark Scheff2015-01-082-2/+4
| | | | Change-Id: I1c9fa43d7be1a6e59703f45559aa0944a5ae7e90
* Fix mix and match in MyThemeFragmentClark Scheff2015-01-071-1/+1
| | | | | | | | The map being returned from getComponentsToApply was setting the key as the value and the value as the key which causes no changes to be made when applying the theme. Change-Id: Ic4491d3c7c39ebef78717ab5cdfcd8d1e5759cc0