Use public android.system.Int64Ref instead of Int32Ref which is hidden (CorePlatformApi) type of am: 3f22cb1106
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1582887 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iab4679528ce95ee246b6f2ff0dd0038b6e6a4b35
This commit is contained in:
@@ -64,7 +64,7 @@ import android.os.ServiceManager;
|
|||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
import android.os.UserHandle;
|
import android.os.UserHandle;
|
||||||
import android.os.storage.StorageManager;
|
import android.os.storage.StorageManager;
|
||||||
import android.system.Int32Ref;
|
import android.system.Int64Ref;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.EventLog;
|
import android.util.EventLog;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
@@ -4040,7 +4040,7 @@ public abstract class ContentResolver implements ContentInterface {
|
|||||||
// Convert to Point, since that's what the API is defined as
|
// Convert to Point, since that's what the API is defined as
|
||||||
final Bundle opts = new Bundle();
|
final Bundle opts = new Bundle();
|
||||||
opts.putParcelable(EXTRA_SIZE, Point.convert(size));
|
opts.putParcelable(EXTRA_SIZE, Point.convert(size));
|
||||||
final Int32Ref orientation = new Int32Ref(0);
|
final Int64Ref orientation = new Int64Ref(0);
|
||||||
|
|
||||||
Bitmap bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(() -> {
|
Bitmap bitmap = ImageDecoder.decodeBitmap(ImageDecoder.createSource(() -> {
|
||||||
final AssetFileDescriptor afd = content.openTypedAssetFile(uri, "image/*", opts,
|
final AssetFileDescriptor afd = content.openTypedAssetFile(uri, "image/*", opts,
|
||||||
|
|||||||
Reference in New Issue
Block a user