mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 07:46:55 +00:00
add more logging around package updates and widget click handling in Launcher
Bug: 336976070 Test: locally verified Flag: N/A Change-Id: I8a1204fb6d96eccbc20b0ddd3c1e6fb1ae75fc6c
This commit is contained in:
@@ -26,6 +26,7 @@ import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.UserHandle;
|
||||
import android.util.Log;
|
||||
import android.widget.RemoteViews;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -104,6 +105,8 @@ public class WidgetManagerHelper {
|
||||
// If exception is thrown because of device is locked, it means a race condition occurs
|
||||
// that the user got locked again while launcher is processing the event. In this case
|
||||
// we should return empty list.
|
||||
Log.e(TAG, "getAllProviders: Error getting installed providers for"
|
||||
+ " package=" + packageUser.mPackageName, e);
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
@@ -133,6 +136,8 @@ public class WidgetManagerHelper {
|
||||
return LauncherAppWidgetProviderInfo.fromProviderInfo(mContext, info);
|
||||
}
|
||||
}
|
||||
Log.w(TAG, "findProvider: No App Widget Provider found for component=" + provider
|
||||
+ " user=" + user);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user