Add new log events for widgets.
Design doc: go/widgets-logging Bug: 185778648 Test: manual Change-Id: Ia3c6edb87766a33e77865e9461e7101a1df864c1
This commit is contained in:
1 parent
b1e51e2a3f
commit
4ff5ee3a8f
7 files changed
+77
-3
No files matched your search
@@ -45,6 +45,7 @@ import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.model.data.ItemInfoWithIcon;
|
||||
import com.android.launcher3.model.data.LauncherAppWidgetInfo;
|
||||
import com.android.launcher3.util.PackageManagerHelper;
|
||||
import com.android.launcher3.util.PendingRequestArgs;
|
||||
import com.android.launcher3.widget.LauncherAppWidgetProviderInfo;
|
||||
|
||||
import java.net.URISyntaxException;
|
||||
@@ -267,6 +268,8 @@ public class SecondaryDropTarget extends ButtonDropTarget implements OnAlarmList
|
||||
if (mCurrentAccessibilityAction == RECONFIGURE) {
|
||||
int widgetId = getReconfigurableWidgetId(view);
|
||||
if (widgetId != INVALID_APPWIDGET_ID) {
|
||||
mLauncher.setWaitingForResult(
|
||||
PendingRequestArgs.forWidgetInfo(widgetId, null, info));
|
||||
mLauncher.getAppWidgetHost().startConfigActivity(mLauncher, widgetId,
|
||||
REQUEST_RECONFIGURE_APPWIDGET);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user