Workarounds to avoid removing all prefs

Removing all prefs causes ugly animations, so avoid it at all cost
and cache all the prefs (while still added) as long as possible.

Bug: 26271353
Change-Id: I33b84d751938b460f4b66c0158057407dd45d974
This commit is contained in:
Jason Monk
2016-02-25 13:55:48 -05:00
parent 6c09bd2538
commit 2071eda150
5 changed files with 72 additions and 29 deletions

View File

@@ -84,6 +84,10 @@ public final class BluetoothDevicePreference extends Preference implements
onDeviceAttributesChanged();
}
void rebind() {
notifyChanged();
}
CachedBluetoothDevice getCachedDevice() {
return mCachedDevice;
}