diff options
Diffstat (limited to 'src/com/android/customization/picker/theme/CustomThemeNameFragment.java')
-rw-r--r-- | src/com/android/customization/picker/theme/CustomThemeNameFragment.java | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/com/android/customization/picker/theme/CustomThemeNameFragment.java b/src/com/android/customization/picker/theme/CustomThemeNameFragment.java index 067dfbc3..6f20a1a3 100644 --- a/src/com/android/customization/picker/theme/CustomThemeNameFragment.java +++ b/src/com/android/customization/picker/theme/CustomThemeNameFragment.java @@ -15,12 +15,6 @@ */ package com.android.customization.picker.theme; -import static com.android.customization.picker.ViewOnlyFullPreviewActivity.SECTION_STYLE; -import static com.android.customization.picker.theme.ThemeFullPreviewFragment.EXTRA_THEME_OPTION; -import static com.android.customization.picker.theme.ThemeFullPreviewFragment.EXTRA_THEME_OPTION_TITLE; -import static com.android.customization.picker.theme.ThemeFullPreviewFragment.EXTRA_WALLPAPER_INFO; - -import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; @@ -37,10 +31,8 @@ import com.android.customization.model.theme.ThemeBundle.PreviewInfo; import com.android.customization.model.theme.custom.CustomTheme; import com.android.customization.module.CustomizationInjector; import com.android.customization.module.CustomizationPreferences; -import com.android.customization.picker.ViewOnlyFullPreviewActivity; import com.android.customization.picker.WallpaperPreviewer; import com.android.wallpaper.R; -import com.android.wallpaper.model.WallpaperInfo; import com.android.wallpaper.module.CurrentWallpaperInfoFactory; import com.android.wallpaper.module.InjectorProvider; import com.android.wallpaper.picker.AppbarFragment; @@ -66,7 +58,6 @@ public class CustomThemeNameFragment extends CustomThemeStepFragment { private EditText mNameEditor; private ImageView mWallpaperImage; - private WallpaperInfo mCurrentHomeWallpaper; private ThemeOptionPreviewer mThemeOptionPreviewer; private CustomizationPreferences mCustomizationPreferences; @@ -98,7 +89,6 @@ public class CustomThemeNameFragment extends CustomThemeStepFragment { view.findViewById(R.id.wallpaper_preview_surface)); currentWallpaperFactory.createCurrentWallpaperInfos( (homeWallpaper, lockWallpaper, presentationMode) -> { - mCurrentHomeWallpaper = homeWallpaper; wallpaperPreviewer.setWallpaper(homeWallpaper, mThemeOptionPreviewer::updateColorForLauncherWidgets); }, false); @@ -106,8 +96,6 @@ public class CustomThemeNameFragment extends CustomThemeStepFragment { // Set theme default name. mNameEditor = view.findViewById(R.id.custom_theme_name); mNameEditor.setText(getOriginalThemeName()); - - view.findViewById(R.id.theme_preview_card).setOnClickListener(v -> showFullPreview()); return view; } @@ -141,15 +129,4 @@ public class CustomThemeNameFragment extends CustomThemeStepFragment { public String getThemeName() { return mNameEditor.getText().toString(); } - - private void showFullPreview() { - CustomTheme themeToFullPreview = mCustomThemeManager.buildPartialCustomTheme( - getContext(), /* id= */ "", getThemeName()); - Bundle bundle = new Bundle(); - bundle.putParcelable(EXTRA_WALLPAPER_INFO, mCurrentHomeWallpaper); - bundle.putString(EXTRA_THEME_OPTION, themeToFullPreview.getSerializedPackages()); - bundle.putString(EXTRA_THEME_OPTION_TITLE, themeToFullPreview.getTitle()); - Intent intent = ViewOnlyFullPreviewActivity.newIntent(getContext(), SECTION_STYLE, bundle); - startActivity(intent); - } } |