OSDN Git Service

Create a singleton HashMap instead of using Collections.singleton()
authorTony Wickham <twickham@google.com>
Thu, 9 Feb 2017 16:28:52 +0000 (08:28 -0800)
committerTony Wickham <twickham@google.com>
Thu, 9 Feb 2017 18:30:06 +0000 (10:30 -0800)
commit580edcf529b0755f2bba442e97dd02d8cdad3b82
treea1a89d2bfdd7c9eb67527bd207df81a7e3c1120a
parent4b20e0c312d7a6f5f0a65e8bada74eeb52c15bc0
Create a singleton HashMap instead of using Collections.singleton()

The Set returned by Collections.singleton() doesn't support all
operations, causing crashes in certain situations (namely, whenever
a notification is updated rather than added or removed).

Change-Id: Ie104b7f99c4a32db5f1f7e43ec3775d34dc26ce1
src/com/android/launcher3/Utilities.java
src/com/android/launcher3/popup/PopupDataProvider.java