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:
Charlie Anderson
2024-05-01 15:25:46 -04:00
parent 798340dc6d
commit 5fa4f02c70
4 changed files with 96 additions and 14 deletions

View File

@@ -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;
}