summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-04-06 02:13:17 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-04-06 02:13:17 +0000
commitc37f89dff9c28f30de768ab8573058e0ee24aae6 (patch)
tree40e0ad3d3519ee6883719e46b46eb5b8909ce633
parent27b7b2fa504c4f176bf33065579753941cc01631 (diff)
parenta5c93b11452c94ec6948274e25ae689f043a2bf7 (diff)
downloadSettings-c37f89dff9c28f30de768ab8573058e0ee24aae6.tar.gz
Merge "Fix-up starting style&wallpaper from search" into main
-rw-r--r--src/com/android/settings/wallpaper/WallpaperSuggestionActivity.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/com/android/settings/wallpaper/WallpaperSuggestionActivity.java b/src/com/android/settings/wallpaper/WallpaperSuggestionActivity.java
index 675e10fc2a0..14ef4833588 100644
--- a/src/com/android/settings/wallpaper/WallpaperSuggestionActivity.java
+++ b/src/com/android/settings/wallpaper/WallpaperSuggestionActivity.java
@@ -17,7 +17,6 @@
package com.android.settings.wallpaper;
import android.app.WallpaperManager;
-import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
@@ -81,10 +80,9 @@ public class WallpaperSuggestionActivity extends StyleSuggestionActivityBase imp
SearchIndexableRaw data = new SearchIndexableRaw(context);
data.title = controller.getTitle();
data.screenTitle = data.title;
- ComponentName component = controller.getComponentName();
- data.intentTargetPackage = component.getPackageName();
- data.intentTargetClass = component.getClassName();
- data.intentAction = controller.getComponentActionName();
+ data.intentTargetPackage = context.getPackageName();
+ data.intentTargetClass = WallpaperSuggestionActivity.class.getName();
+ data.intentAction = Intent.ACTION_MAIN;
data.key = SUPPORT_SEARCH_INDEX_KEY;
data.keywords = controller.getKeywords();
result.add(data);