Remove all apps page
Instead move the functionality back into overflow menu as show/hide system apps. Also move the reset app preferences from advanced to the overflow menu. Bug: 20210160 Change-Id: Ied573e1f7dfc438b06642ee2af8f11868130ba3b
This commit is contained in:
@@ -349,6 +349,27 @@ public class ApplicationsState {
|
||||
}
|
||||
};
|
||||
|
||||
public static class CompoundFilter implements AppFilter {
|
||||
private final AppFilter mFirstFilter;
|
||||
private final AppFilter mSecondFilter;
|
||||
|
||||
public CompoundFilter(AppFilter first, AppFilter second) {
|
||||
mFirstFilter = first;
|
||||
mSecondFilter = second;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
mFirstFilter.init();
|
||||
mSecondFilter.init();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean filterApp(AppEntry info) {
|
||||
return mFirstFilter.filterApp(info) && mSecondFilter.filterApp(info);
|
||||
}
|
||||
}
|
||||
|
||||
final Context mContext;
|
||||
final PackageManager mPm;
|
||||
final IPackageManager mIpm;
|
||||
|
||||
Reference in New Issue
Block a user