Skip to content

Commit

Permalink
Always hide activities from own package
Browse files Browse the repository at this point in the history
  • Loading branch information
amirzaidi committed Sep 7, 2018
1 parent 99abf86 commit d85b164
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import android.content.SharedPreferences;
import android.os.UserHandle;

import com.android.launcher3.BuildConfig;
import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherModel;
import com.android.launcher3.Utilities;
Expand All @@ -25,6 +26,9 @@ public CustomAppFilter(Context context) {

@Override
public boolean shouldShowApp(ComponentName componentName, UserHandle user) {
if (componentName.getPackageName().equals(BuildConfig.APPLICATION_ID)) {
return false;
}
if (CustomIconUtils.usingValidPack(mContext)) {
return !isHiddenApp(mContext, new ComponentKey(componentName, user));
}
Expand Down

0 comments on commit d85b164

Please sign in to comment.