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

Commit cc340899 authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Fix UserManager#isUserAGoat" into lmp-dev

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


    /**
    /**