commit | 8235ed14a4287171b37dcdb81de0f29882965389 | [log] [tgz] |
---|---|---|
author | Yi-Ling Chuang <emilychuang@google.com> | Mon Jun 17 11:00:47 2019 +0800 |
committer | Yi-Ling Chuang <emilychuang@google.com> | Fri Jun 21 10:46:44 2019 +0800 |
tree | b0b33dcd3244acc466e79fdf10e6f63dfd97e036 | |
parent | 2ee1249b01dd25fc0c5c430aa2b41e74e0467796 [diff] |
Make the default value of flashlight availibility to true. We read from SettingsProvider to decide whether flashlight slice is available. However, when switching to the second user, FLASHLIGHT_AVAILABLE will be null. The default was 0 which causes the slice returning null, so we have to set it to 1 when there is a physical flash unit to be consistent with system ui. Fixes: 134734608 Test: robotest Change-Id: I981461b1b66e6e273e13a9cbcba96e3ccf0aec68