summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorCarmen Jackson <carmenjackson@google.com>2018-02-22 14:03:06 -0800
committerCarmen Jackson <carmenjackson@google.com>2018-02-26 14:19:45 -0800
commite47046cd266ba3802fa8b10218b399af2280f7ba (patch)
tree9d0adb9325b29cd97ab42f25f4c919ebc5fa9354 /AndroidManifest.xml
parentbe1b1b294671166fc8af686de7c87cc90d1f7a75 (diff)
downloadandroid_packages_apps_Traceur-e47046cd266ba3802fa8b10218b399af2280f7ba.tar.gz
android_packages_apps_Traceur-e47046cd266ba3802fa8b10218b399af2280f7ba.tar.bz2
android_packages_apps_Traceur-e47046cd266ba3802fa8b10218b399af2280f7ba.zip
Traceur: Make sure QS Tile state is correct on first boot.
This changes the QS service to default to disabled, and also checks and resets the service state on boot in addition to when the preference is manually set. This should prevent edge cases where the QS tile is available on first boot, when it shouldn't be. This also adds a check to not show the QS tile when Developer Options isn't visible. Bug: 73087666 Bug: 73523779 Test: Tests pass. Test: Enabled the QS tile setting, saw the QS tile visible. Switched to a secondary user and did not see the QS tile. Switched back to primary user and saw the QS tile. Test: Cleared data on the device, did not see the QS tile on reboot. QS tile appeared when setting was enabled. Test: With the QS tile setting enabled in the app: Disabled Developer Options, did not see the QS tile. Reenabled Developer Options and the tile was visible. Change-Id: I4ee473654bbb2a81a0d43f5667b64b43bfa8af59
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 8d9b095..ba04aa2 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -54,9 +54,10 @@
</receiver>
<service
- android:name=".QsService"
- android:label="@string/system_tracing"
+ android:enabled="false"
android:icon="@drawable/stat_sys_adb"
+ android:label="@string/system_tracing"
+ android:name=".QsService"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />