Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70e0847c authored by George Lin's avatar George Lin
Browse files

Remove unused function createSurfaceViewRequest (2/2)

Test: The app builds and works as expected
Bug: 331817016
Flag: ACONFIG com.android.wallpaper.multi_crop_preview_ui_flag TEAMFOOD
Change-Id: Ifedcb4fb13a2b11b3ca58fcce9dc7f9444e77c94
parent 8201a84e
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
package com.android.customization.model.grid;

import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
@@ -30,7 +29,6 @@ import com.android.customization.module.CustomizationInjector;
import com.android.customization.module.logging.ThemesUserEventLogger;
import com.android.wallpaper.R;
import com.android.wallpaper.module.InjectorProvider;
import com.android.wallpaper.util.PreviewUtils;

import java.util.List;
import java.util.concurrent.ExecutionException;
@@ -125,10 +123,4 @@ public class GridOptionsManager implements CustomizationManager<GridOption> {
    public LiveData<Object> getOptionChangeObservable(@Nullable Handler handler) {
        return mProvider.getOptionChangeObservable(handler);
    }

    /** Call through content provider API to render preview */
    public void renderPreview(Bundle bundle, String gridName,
            PreviewUtils.WorkspacePreviewCallback callback) {
        mProvider.renderPreview(gridName, bundle, callback);
    }
}
+0 −15
Original line number Diff line number Diff line
@@ -22,9 +22,7 @@ import android.content.res.Resources;
import android.database.ContentObserver;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.view.SurfaceView;

import androidx.annotation.Nullable;
import androidx.annotation.WorkerThread;
@@ -107,19 +105,6 @@ public class LauncherGridOptionsProvider {
        return mOptions;
    }

    /**
     * Request rendering of home screen preview via Launcher to Wallpaper using SurfaceView
     * @param name      the grid option name
     * @param bundle    surface view request bundle generated from
     *    {@link com.android.wallpaper.util.SurfaceViewUtils#createSurfaceViewRequest(SurfaceView)}.
     * @param callback To receive the result (will be called on the main thread)
     */
    void renderPreview(String name, Bundle bundle,
            PreviewUtils.WorkspacePreviewCallback callback) {
        bundle.putString("name", name);
        mPreviewUtils.renderPreview(bundle, callback);
    }

    void updateView() {
        mLiveData.postValue(new Object());
    }