增加试玩开关判断

This commit is contained in:
Jack
2020-05-07 10:24:00 +08:00
parent e141dfb6b5
commit 8676b20fbb
3 changed files with 9 additions and 2 deletions

View File

@ -24,6 +24,7 @@ import org.greenrobot.eventbus.EventBus;
import java.util.List;
import androidx.annotation.Nullable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
@ -233,6 +234,10 @@ public class Config {
return false;
}
public static boolean isGameDomeSwitchOpen() {
return getSettings().getGameDomeSwitch().equals("on");
}
public static void fixHideFunction() {
SharedPreferences preferences = PreferenceManager.
getDefaultSharedPreferences(HaloApp.getInstance().getApplication());