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

Commit eb949674 authored by Wei-Ta Chen's avatar Wei-Ta Chen
Browse files

Unhide inPurgeable in BitmapFactory.Options.

The correctness and effectiveness of the usage of the parameter are evaluated in:
https://android-git.corp.google.com/g/Gerrit#change,2768
parent 30b70cec
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -48699,6 +48699,16 @@
 visibility="public"
>
</field>
<field name="inPurgeable"
 type="boolean"
 transient="false"
 volatile="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="inSampleSize"
 type="int"
 transient="false"
+20 −22
Original line number Diff line number Diff line
@@ -18,14 +18,14 @@ package android.graphics;

import android.content.res.AssetManager;
import android.content.res.Resources;
import android.util.TypedValue;
import android.util.DisplayMetrics;
import android.util.TypedValue;

import java.io.BufferedInputStream;
import java.io.FileDescriptor;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.IOException;
import java.io.FileDescriptor;
import java.io.InputStream;

/**
 * Creates Bitmap objects from various sources, including files, streams,
@@ -117,8 +117,6 @@ public class BitmapFactory {
         * explicitly make a copy of the input data, and keep that. Even if
         * sharing is allowed, the implementation may still decide to make a
         * deep copy of the input data.
         *
         * @hide pending API council approval
         */
        public boolean inPurgeable;