Add hidden minor version ID for support lib workarounds.

Change-Id: I7940e32c78caaab351fb28d92e5fadbea6292b27
This commit is contained in:
Tim Murray
2014-02-06 16:39:38 -08:00
parent 449273e2d5
commit 67cc2d033e

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.