Add hidden minor version ID for support lib workarounds.

bug 13170046

Change-Id: I0c77901752e9a0b10bd5be62311c79a0ab7128e5
This commit is contained in:
Jason Sams
2014-03-10 13:32:21 -07:00
parent ff7256e757
commit 5757bf89c4

View File

@@ -103,6 +103,20 @@ public class RenderScript {
static File mCacheDir;
// this should be a monotonically increasing ID
// used in conjunction with the API version of a device
static final long sMinorID = 1;
/**
* Returns an identifier that can be used to identify a particular
* minor version of RS.
*
* @hide
*/
public static long getMinorID() {
return sMinorID;
}
/**
* Sets the directory to use as a persistent storage for the
* renderscript object file cache.