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

Commit 9ae552fc authored by Adam Powell's avatar Adam Powell Committed by Android Git Automerger
Browse files

am aaceaabe: am 1e2f3d98: Merge "Fix UserManager#isUserAGoat" into lmp-dev

* commit 'aaceaabeddaa2e7a9e33877cd39f66d75689071b':
  Fix UserManager#isUserAGoat
parents 086b533f 6769191b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ import android.annotation.SystemApi;
import android.app.ActivityManager;
import android.app.ActivityManagerNative;
import android.content.Context;
import android.content.pm.PackageManager;
import android.content.pm.UserInfo;
import android.content.res.Resources;
import android.graphics.Bitmap;
@@ -430,7 +431,8 @@ public class UserManager {
     * @return whether the user making this call is a goat
     */
    public boolean isUserAGoat() {
        return false;
        return mContext.getPackageManager()
                .isPackageAvailable("com.coffeestainstudios.goatsimulator");
    }

    /**