Bjorn Bringert | 1307f63 | 2013-10-03 22:31:03 +0100 | [diff] [blame] | 1 | package com.android.launcher3; |
| 2 | |
| 3 | import android.content.ComponentName; |
Sunny Goyal | c6e9769 | 2017-06-02 13:46:55 -0700 | [diff] [blame] | 4 | import android.content.Context; |
Bjorn Bringert | 1307f63 | 2013-10-03 22:31:03 +0100 | [diff] [blame] | 5 | |
Sunny Goyal | 7f920b8 | 2018-06-27 15:47:49 -0700 | [diff] [blame] | 6 | import com.android.launcher3.util.ResourceBasedOverride; |
| 7 | |
| 8 | public class AppFilter implements ResourceBasedOverride { |
Bjorn Bringert | 1307f63 | 2013-10-03 22:31:03 +0100 | [diff] [blame] | 9 | |
Sunny Goyal | c6e9769 | 2017-06-02 13:46:55 -0700 | [diff] [blame] | 10 | public static AppFilter newInstance(Context context) { |
Sunny Goyal | 7f920b8 | 2018-06-27 15:47:49 -0700 | [diff] [blame] | 11 | return Overrides.getObject(AppFilter.class, context, R.string.app_filter_class); |
Sunny Goyal | c6e9769 | 2017-06-02 13:46:55 -0700 | [diff] [blame] | 12 | } |
| 13 | |
Sunny Goyal | ab121c1 | 2016-12-02 19:29:43 +0530 | [diff] [blame] | 14 | public boolean shouldShowApp(ComponentName app) { |
| 15 | return true; |
Bjorn Bringert | 1307f63 | 2013-10-03 22:31:03 +0100 | [diff] [blame] | 16 | } |
Bjorn Bringert | 1307f63 | 2013-10-03 22:31:03 +0100 | [diff] [blame] | 17 | } |