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

Commit 988ae30f authored by Adam Powell's avatar Adam Powell
Browse files

Fix UserManager#isUserAGoat

Correctly detect if the user is a goat.

Change-Id: I78577dd7ec8c3685434ee03560010a6ea4db127f
parent f3b47e95
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");
    }

    /**