You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
implement WallpaperManager.setBitmap() using XDG Portal
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
package android.app;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
|
||||
public class WallpaperManager {
|
||||
|
||||
public static WallpaperManager getInstance(Context context) {
|
||||
return new WallpaperManager();
|
||||
}
|
||||
|
||||
public void setBitmap(Bitmap bitmap) {
|
||||
set_bitmap(bitmap.pixbuf);
|
||||
}
|
||||
|
||||
private static native void set_bitmap(long pixbuf);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user