summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2016-05-23 15:15:32 -0700
committerGerrit Code Review <gerrit@cyngn.com>2016-05-23 22:18:37 +0000
commit0a305be7113475d431b71f06917e1c7b3c5eb3d2 (patch)
tree42483d05fbfdc48cadab0f82d1c83d7862d4644b
parentf5ebb43b7c6358bc79a6bf8b6aa141e30ef08e46 (diff)
downloadandroid_packages_apps_AudioFX-0a305be7113475d431b71f06917e1c7b3c5eb3d2.tar.gz
android_packages_apps_AudioFX-0a305be7113475d431b71f06917e1c7b3c5eb3d2.tar.bz2
android_packages_apps_AudioFX-0a305be7113475d431b71f06917e1c7b3c5eb3d2.zip
AudioFX: fix qs tile updating
We need to actually update the prefs after a tile toggle. Also we aren't coming from background, so that was not the right flag for the receiver. Instead we need to tell the receiver to come to the FOREGROUND! Ticket: FEIJ-747, FEIJ-695 Change-Id: I43843739958579932ff57c3d83a2e4bce65c33c9 Signed-off-by: Roman Birg <roman@cyngn.com>
-rw-r--r--src/com/cyngn/audiofx/service/AudioFxService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/cyngn/audiofx/service/AudioFxService.java b/src/com/cyngn/audiofx/service/AudioFxService.java
index 754664f..f75801a 100644
--- a/src/com/cyngn/audiofx/service/AudioFxService.java
+++ b/src/com/cyngn/audiofx/service/AudioFxService.java
@@ -170,7 +170,7 @@ public class AudioFxService extends Service
}
if (intent != null && intent.getAction() != null) {
if (ACTION_UPDATE_TILE.equals(intent.getAction())) {
- updateQsTile();
+ update(ALL_CHANGED);
} else {
String action = intent.getAction();
int sessionId = intent.getIntExtra(AudioEffect.EXTRA_AUDIO_SESSION, 0);
@@ -257,7 +257,7 @@ public class AudioFxService extends Service
mLastLocale = getResources().getConfiguration().locale;
final PendingIntent pi = PendingIntent.getBroadcast(this, 0,
new Intent(QuickSettingsTileReceiver.ACTION_TOGGLE_CURRENT_DEVICE)
- .addFlags(Intent.FLAG_FROM_BACKGROUND)
+ .addFlags(Intent.FLAG_RECEIVER_FOREGROUND)
.setClass(this, QuickSettingsTileReceiver.class), 0);
final PendingIntent longPress = PendingIntent.getActivity(this, 0,