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

Commit 6769191b authored by Adam Powell's avatar Adam Powell Committed by Android Git Automerger
Browse files

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

* commit '1e2f3d98e74c1b0d81fa536a70241bb998d29036':
  Fix UserManager#isUserAGoat
parents 87b544bf cc340899
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");
    }

    /**