Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solution for issue #159 #199

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,25 @@ public void loadApps() {
PackageManager pm = getPackageManager();
List<ResolveInfo> activities = pm.queryIntentActivities(startupIntent, 0);


Iterator<ResolveInfo> iter = activities.iterator();
ResolveInfo rf;
String appname;
while(iter.hasNext()){
rf=iter.next();
String tempPackage = rf.activityInfo.packageName;
// activity name as com.example/com.example.MainActivity
String activity = rf + "/" + rf.activityInfo.name;
/// save the app original name so that we can use this later e.g if user change
/// the app name then we have the name in DB
//DbUtils.putAppOriginalName(activity, rf.loadLabel(pm).toString());
// check whether user set the custom app name for eg. long name to small name
appname = DbUtils.getAppName(activity, rf.loadLabel(pm).toString());
if(appname.equals("Last Launcher Dev")){
iter.remove();
}
}

// check whether our app list is already initialized if yes then clear this(when new app or shortcut installed)
if (mAppsList != null) {
mAppsList.clear();
Expand Down