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

Commit e29dd30c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove unused shadow"

parents 0a0551cb 3739508a
Loading
Loading
Loading
Loading
+0 −30
Original line number Diff line number Diff line
package com.android.settings.testutils.shadow;

import android.content.Context;

import com.android.settings.network.MobileNetworkPreferenceController;

import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;

@Implements(MobileNetworkPreferenceController.class)
public class ShadowMobileNetworkPreferenceController {
    private static boolean mIsRestricted = false;

    public void __constructor__(Context context) {
    }

    @Implementation
    public boolean isAvailable() {
        return mIsRestricted ? false : true;
    }

    @Implementation
    public boolean isUserRestricted() {
        return mIsRestricted;
    }

    public static void setRestricted(boolean restricted) {
        mIsRestricted = restricted;
    }
}