summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-03-03 13:40:05 -0800
committerClark Scheff <clark@cyngn.com>2015-10-27 17:52:35 -0700
commitf3a1f050cbaa758656f862b42c328c2b1aeb6017 (patch)
tree80c4e94ed012750a302698c56f802a8f946409c1 /services
parent05ce0a6f5651743add398556d557a5f4c40c2503 (diff)
downloadframeworks_base-f3a1f050cbaa758656f862b42c328c2b1aeb6017.zip
frameworks_base-f3a1f050cbaa758656f862b42c328c2b1aeb6017.tar.gz
frameworks_base-f3a1f050cbaa758656f862b42c328c2b1aeb6017.tar.bz2
Themes: Drop timestamp and add change request type
This patch ditches the hack where we keep track of the time a theme change occurs. Instead we keep track of the RequestType when a theme change occurs. This extra information is much more useful to apps that want to handle theme changes, i.e. SystemUI. If a new theme config is equal to an old theme config, the app can look at the request type and determine what action to take. Change-Id: Ie1d56060069d6645bf3212f4a70739d491cd0731
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/ThemeService.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/ThemeService.java b/services/core/java/com/android/server/ThemeService.java
index 86b5bfd..ad35099f 100644
--- a/services/core/java/com/android/server/ThemeService.java
+++ b/services/core/java/com/android/server/ThemeService.java
@@ -777,11 +777,7 @@ public class ThemeService extends IThemeService.Stub {
}
}
- // When a theme is being updated the new config equal the old config so in this case we
- // want to update the timestamp so they are no longer equal.
- if (request.getReqeustType() == ThemeChangeRequest.RequestType.THEME_UPDATED) {
- builder.setThemeChangeTimestamp(System.currentTimeMillis());
- }
+ builder.setLastThemeChangeRequestType(request.getReqeustType());
return builder;
}