mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Add logging for adding pending icons to the workspace.
Added logging to help track down b/168788486 Bug: 168788486 Test: manual Change-Id: I96b38be7c02793f1b6649e6c0de5cdf47dca6edb
This commit is contained in:
@@ -24,6 +24,7 @@ import android.content.pm.PackageInstaller.SessionInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.os.UserHandle;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.WorkerThread;
|
||||
|
||||
@@ -36,6 +37,8 @@ import com.android.launcher3.util.Executors;
|
||||
*/
|
||||
public class SessionCommitReceiver extends BroadcastReceiver {
|
||||
|
||||
private static final String LOG = "SessionCommitReceiver";
|
||||
|
||||
// Preference key for automatically adding icon to homescreen.
|
||||
public static final String ADD_ICON_PREFERENCE_KEY = "pref_add_icon_to_home";
|
||||
|
||||
@@ -68,6 +71,11 @@ public class SessionCommitReceiver extends BroadcastReceiver {
|
||||
return;
|
||||
}
|
||||
|
||||
Log.i(LOG,
|
||||
"Adding package name to install queue. Package name: " + info.getAppPackageName()
|
||||
+ ", has app icon: " + (info.getAppIcon() != null)
|
||||
+ ", has app label: " + !TextUtils.isEmpty(info.getAppLabel()));
|
||||
|
||||
ItemInstallQueue.INSTANCE.get(context)
|
||||
.queueItem(info.getAppPackageName(), user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user