OSDN Git Service

Fix an override filter bug.
authorDaniel Nishi <dhnishi@google.com>
Mon, 22 May 2017 23:33:32 +0000 (16:33 -0700)
committerDaniel Nishi <dhnishi@google.com>
Thu, 25 May 2017 21:23:29 +0000 (14:23 -0700)
commit5d0888be751fa5c14b63ea437f9c2f2a929e6c05
tree2299252de94b10f789a193aea4bcf6fe5059a506
parented8b39fe60d84a3f7021c7e59f91d6623f1be36b
Fix an override filter bug.

The override filter for storage to ensure that we filter by UUID and
user id was designed as an override filter. This worked as long as there
never was any other filters which could be used out of Storage Settings.
It turns out the instant apps filter applies here.

As a result, I've moved these filters into being "composite filters"
which are composed with the primary filter instead of overriding the
primary filter.

Fixes: 35245772
Test: Settings Robotests... but as for the composing part it is
b/34768986

Change-Id: I6f5acb909568ab02e81187c09fdda9533d635781
src/com/android/settings/applications/ManageApplications.java
tests/unit/src/com/android/settings/applications/ManageApplicationsTest.java