summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Make sure position is within the bounds of mFragmentsClark Scheff2014-09-231-1/+1
| | | | Change-Id: Ib35bd18254f3ba49820e6de115834ca6fcf66090
* Make sure the fragment at position is the fragment being destroyedClark Scheff2014-09-191-2/+7
| | | | | | | | | checkForIdChanges() rebuilds the mFragments list which causes the wrong fragment to be removed from mFragments. This patch checks that the fragment being removed is the same as the one at the given position, if not then we do not set that entry to null. Change-Id: Ia5883a0329de37e60331e849d749a104a32f7d11
* Include author name in title cardClark Scheff2014-09-185-13/+41
| | | | Change-Id: Id3c2371fe2bc0eceb230a037d5ba2f60600b9a71
* Take into account status bar height when moving content downClark Scheff2014-09-181-2/+4
| | | | | | | | | We were only scrolling content into view if the top was negative but we should take into account the status bar height and make sure the conent is scrolled so that it is below the status bar and not behind it. Change-Id: Ia7d40af4dfffbc9ce6a1e12aa2175905db3c710b
* Use linear layout inside scrollview for component selectorClark Scheff2014-09-187-392/+516
| | | | Change-Id: I9ad30111c8c3fbaabcf5748ec6cf1d7a9fc2eaa9
* Fix missing wallpapers in component selectorClark Scheff2014-09-161-4/+6
| | | | Change-Id: I19e9a8da814260fc64cf5b9d74c2987508c5812a
* Add height of status bar to StatusBarCard top paddingClark Scheff2014-09-161-1/+7
| | | | Change-Id: I1e26a6e94667248f3c32896a3f2eef9307b91d90
* Clear out notification on resumeClark Scheff2014-09-163-6/+7
| | | | Change-Id: Ibfc42bec92116ffd0569280647cfe887ed508520
* Optimize adding, removing, and re-ordering fragmentsClark Scheff2014-09-164-45/+437
| | | | | | | | | | | | | | | | FragmentStatePagerAdapter saves the state of the fragments based on their position. This works great until you start to add and remove fragments. The fragments get their state restored incorrectly and we end up with duplicates or gaps. We initially ended up recreating the pager adapter whenever we needed to add or remove a theme to get by this limitation. This patch brings in NewFragmentStatePagerAdapter found at https://code.google.com/p/android/issues/detail?id=37990 to provide a better work around for this bug. We still re-create the pager adapter if we change a theme since the MyThemeFragment requires some special attention. Change-Id: Ibaa6854085f8653a6eb6dbe288bdbed871551ed2
* Remove unused theme manager callbacksClark Scheff2014-09-161-12/+1
| | | | Change-Id: I1f5b2d8317d5d4db6bea91ac194f6a3a95b8f4f8
* Delete packages from inside appClark Scheff2014-09-163-19/+53
| | | | | | | | | | | | | | Deleting themes offers a bad user experience in its current form. Since PackageInstaller does not let us know that the package removal was successful, the theme will remain in the viewpager until we finally receive the broadcast from the PackageManager that the theme was removed. This patch adds the DELETE_PACKAGES permission and deletes the package without using the PackageInstaller. This allows us to know immediately that the package was removed and we can update the themes right away. Change-Id: I229f2fbadc6f614a8180fb04735906f86e5e96fa
* Update image for "none" wallpaper and show "none" textClark Scheff2014-09-166-2/+4
| | | | Change-Id: I54a50d756aba78aff83c4b55d1c44d31fa373aeb
* Add ability to pick external images for wallpaper/lockscreenClark Scheff2014-09-1513-22/+667
| | | | Change-Id: I22d1a00f794946a3b9671b03465d688df70f5c33
* Dismiss save/apply or customize/reset overlay when showing options menuClark Scheff2014-09-091-0/+6
| | | | Change-Id: I2aa04ab6429a660e748bfead38162cec5a398c87
* Workaround AOSP issue #18990Clark Scheff2014-09-041-1/+12
| | | | | Change-Id: I398eec984673244d0164dea85011ecdf35ccf9e3 See: https://code.google.com/p/android/issues/detail?id=18990
* Load the actual audible in a separate threadClark Scheff2014-09-041-6/+26
| | | | | | | | Audibles can take up to 300+ms, per audible, to load from the theme apk. To reduce the latency when expanding a theme, these audibles will be loaded in a separate thread. Change-Id: I48676284d4673d8a22105dac323f0f056e6f7a78
* Don't include author info in popup menu for demoClark Scheff2014-09-042-0/+4
| | | | | | | Since there is no UX available for the author info, this feature will be commented out for the time being. Change-Id: I00ea79f081248501ea499293ad6c5609dda20e48
* Use custom TextView that always uses Lato fontsClark Scheff2014-09-0433-25/+173
| | | | Change-Id: I2f60da0ab633487e18e216072ce834e255b5d852
* Fix centering of "customize" textClark Scheff2014-09-041-1/+1
| | | | Change-Id: Ifd417ec08cc00f1f4300b4d1364d4183538dcf50
* Catch exceptions when getting current fragmentClark Scheff2014-09-041-2/+9
| | | | | | | | This should resolve a bug I noticed when starting the chooser right after a reboot. onPause was called and a NPE was thrown from the FragmentStatePagerAdapter. Change-Id: Ic870dad5d702b3e41fa4e2201b7955c36fa7b5f3
* Add customize/reset overlay for currently applied themeClark Scheff2014-09-0327-18/+235
| | | | Change-Id: I226fd3ff6dc05195d1049d75f72aa32595a42715
* Give the popup menu a more "material design" lookClark Scheff2014-09-031-4/+6
| | | | Change-Id: I543bd13989c4b3a146cc7db5f3c87983dc55ac11
* Don't add unsupported components to mSelectedComponentsMapClark Scheff2014-09-031-21/+52
| | | | | | | | | | | We add a package to the supported components map when the various loadXXXXXX() methods are called but this is not correct. The theme may not support that component and in that case we should not add the package to the supported map. If we do the theme service attempts to apply those components and in the case of fonts, you end up with all text gone. Change-Id: Icd718f4f69f8296a9b5c11f49f5e169373c8b6f6
* Handle theme changes betterClark Scheff2014-09-032-17/+23
| | | | | | | | | | If the user closes out the app during a theme change it is possible to end up in a state where the chooser incorrectly displays the applied theme as the one that was perviously applied before the change. When in this state it is also possible for the theme change listener to not be triggered and the card displays an empty progress bar. Change-Id: I323cfdd2c9c6d1fd9d50ba7f6f1bae7e355c0f62
* Fade content for unselected component cardsClark Scheff2014-09-021-36/+3
| | | | | | | | Previously we were only adjusting the alpha of the label and the background. This patch adjusts the alpha of the entire card and its contents. Change-Id: I109475d48f4823411d5bcbe719c435e969ac2044
* Recreate adapter in onResume() if new themes were installedClark Scheff2014-09-021-0/+9
| | | | Change-Id: Ia2106a83037382d0ba08a5e49600924914ec06fb
* Keep additional cards the same width as all other cardsClark Scheff2014-08-291-1/+0
| | | | Change-Id: Ia2088bf207e070757525e8aa34a8d04a06a3a9af
* Style popup menu text color so themes don't screw it up too badClark Scheff2014-08-293-0/+29
| | | | | | | | | Eventually themers will override these colors and hopefully they'll use colors that work well. Until then we need to override the text color of the popup menu so it looks good even after applying some funky styles :P Change-Id: I84e12835c9f0990124c479699591637fa912f09d
* Animate content in if we are resuming from the launcherd34d2014-08-293-0/+48
| | | | Change-Id: Id631d75b8bc14530a75feda43090bba3732e52f4
* Fix copyright derpaged34d2014-08-2814-14/+14
| | | | Change-Id: Ib0d62b6bc69cd6c0c485a1ec5340ffdd7914efc3
* Use NavBarSpace for padding the bottom of some layoutsd34d2014-08-287-20/+45
| | | | | | | | | | | We've used Space in enough layouts that it makes sense to create a view that can take care of all the logic regarding padding the bottom of layouts so content goes above the navigation bar. This view simply sets the height to 0 in onMeasure() when no navigation bar is detected. It leaves the height to whatever the super class had set it to when there is a navigation bar. Change-Id: I908c6a8a01ba4f761335909e9ecfb48a8a3007d2
* Continue to overridePendingTransition in onNewIntent()d34d2014-08-281-0/+1
| | | | | | | We stopped showing the animation but we should still do the transition between activities when resuming. Change-Id: I878bfa1170efd436b5bad5c75a998ab554e7d1a4
* Make sure to blur the background when it changesClark Scheff2014-08-281-4/+8
| | | | Change-Id: I901882263eae28c59eb85712fcebadae4bffb2ec
* Check default components for customized when default theme is appliedClark Scheff2014-08-282-7/+31
| | | | | | | | | Because the system default may not be holo and it may not contain all the supported components, we need to check what the default components should be and if they differ then we will set the customized tag. Change-Id: I47af1a4bbb87b9ce68273410a1b7b3f522903e32
* Fix reset theme not actually resettingClark Scheff2014-08-281-1/+1
| | | | Change-Id: I34be6d85f92985f3bf4b202d9a509d0092e16a52
* Set background to grid if wallpaper is null or set to "none"Clark Scheff2014-08-282-1/+22
| | | | Change-Id: I2b1de30ea375a554551b9d3d94aefc974823d871
* Use a ContentObserver to listen for changes of installed themesClark Scheff2014-08-282-22/+35
| | | | | | | | This solves two issues. If a theme is installed while in the theme chooser, the themes will be re-populated with the newly installed theme and if a theme is uninstalled the themes will also be re-populated. Change-Id: I960d6fbb79b18258dca79f00fc380878fe334878
* Set content animation delay in onStartClark Scheff2014-08-281-0/+1
| | | | Change-Id: Iafb40e5d2b29af034fa0ece64ab9fae48cb56cc9
* Slide content down if clicked component is beyond top of screenClark Scheff2014-08-282-12/+20
| | | | Change-Id: Id75710b26eb2eb33ad3100397ed5cbd4fea2d442
* Dismiss apply theme overlay when clicked outside of content.Clark Scheff2014-08-284-13/+36
| | | | Change-Id: I745d94c5e3cd24deeff5a3c4e3c295dda679af33
* Clean up unused itemsClark Scheff2014-08-2811-123/+20
| | | | Change-Id: I8c24c18a4927718970a49a6b77c9b92b4eea1ed6
* Copyright all the things.Clark Scheff2014-08-2873-309/+169
| | | | Change-Id: I6cc73b320657f1bba27017f2843c84e9d6bc4c69
* Merge "Don't animate content in when resuming." into cm-11.0Clark Scheff2014-08-281-5/+0
|\
| * Don't animate content in when resuming.Clark Scheff2014-08-281-5/+0
| | | | | | | | | | | | | | We will need to revisit this and find a solution that can decide whether to animate or not depending on where we are resuming from. Change-Id: Ic5eaa372a1754ecc600d558e884bf9e96156599d
* | Merge "Only call performClick when within the theme card." into cm-11.0Clark Scheff2014-08-283-3/+14
|\ \ | |/
| * Only call performClick when within the theme card.Clark Scheff2014-08-273-3/+14
| | | | | | | | Change-Id: I679489a6980267da6d4ee4f9cb8989365c1d5f88
* | Merge "Adjust dimensions for HDPI devices" into cm-11.0Clark Scheff2014-08-284-1/+51
|\ \ | |/
| * Adjust dimensions for HDPI devicesClark Scheff2014-08-274-1/+51
| | | | | | | | Change-Id: I7ef12d853c080ee24b9240564f002ca9279498f7
* | Merge "Make sure the Shop Themes buttons comes back whenever we collapse" ↵d34d2014-08-281-2/+5
|\ \ | | | | | | | | | into cm-11.0
| * | Make sure the Shop Themes buttons comes back whenever we collapsed34d2014-08-271-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | The way it was setup, the shop themes button would only animate back in when the back button is pressed from an expanded theme. We now hide/show shop themes in setAnimatingStateAndScheduleFinish() which solves this issue. Change-Id: Ie951a93d77ee2c3c89df44cb9b1e1bd7f865dd71