summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-03-22 15:11:51 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-22 15:11:51 -0700
commitad812a23df775062f0185076557e7f3fdfa57943 (patch)
treed170b440d49fb188203bfe2d2b72f844d6b8a0f0 /opengl
parentdf78cd5ee959f57c35dd9d6ad0f6871c72438f3c (diff)
parent483f3b06ea84440a082e21b68ec2c2e54046f5a6 (diff)
downloadframeworks_base-ad812a23df775062f0185076557e7f3fdfa57943.zip
frameworks_base-ad812a23df775062f0185076557e7f3fdfa57943.tar.gz
frameworks_base-ad812a23df775062f0185076557e7f3fdfa57943.tar.bz2
Merge "Package restrictions per user"
Diffstat (limited to 'opengl')
-rw-r--r--opengl/java/com/google/android/gles_jni/GLImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/opengl/java/com/google/android/gles_jni/GLImpl.java b/opengl/java/com/google/android/gles_jni/GLImpl.java
index 090c0cb..07f9e91 100644
--- a/opengl/java/com/google/android/gles_jni/GLImpl.java
+++ b/opengl/java/com/google/android/gles_jni/GLImpl.java
@@ -23,6 +23,7 @@ import android.app.AppGlobals;
import android.content.pm.ApplicationInfo;
import android.content.pm.IPackageManager;
import android.os.Build;
+import android.os.UserId;
import android.util.Log;
import java.nio.Buffer;
@@ -67,7 +68,7 @@ public class GLImpl implements GL10, GL10Ext, GL11, GL11Ext, GL11ExtensionPack {
int version = 0;
IPackageManager pm = AppGlobals.getPackageManager();
try {
- ApplicationInfo applicationInfo = pm.getApplicationInfo(appName, 0);
+ ApplicationInfo applicationInfo = pm.getApplicationInfo(appName, 0, UserId.myUserId());
if (applicationInfo != null) {
version = applicationInfo.targetSdkVersion;
}