OSDN Git Service

Always save message permission choice
authorChienyuan <chienyuanhuang@google.com>
Thu, 6 Dec 2018 11:19:21 +0000 (19:19 +0800)
committerChienyuan <chienyuanhuang@google.com>
Thu, 6 Dec 2018 11:19:21 +0000 (19:19 +0800)
commit10b21a605b4ca2b3d5ed45edfaa6b5f5e753f09d
tree9cec91e67d2c3be346de6d632de9e69a3ec6b5c2
parentbd8374fb26dd0f3fc3bcd9417247b5ae7e035e72
Always save message permission choice

For current design, message sharing option only display when
mapPermisson != CachedBluetoothDevice.ACCESS_UNKNOWN. MAP permisson only
saved when user reject requset twice or accept request, if user just
reject once, permission will be ACCESS_UNKNOWN and message sharing
option will not display. This patch remove the check of
MessageRejectionCount and always save message permission choice.

Bug: 120291728
Test: reject message access request and check device details page
Change-Id: I071491d3c4134ed348e195f054b6557e397cdd6a
src/com/android/settings/bluetooth/BluetoothPermissionActivity.java