Merge branch 'dev' into feature-night_mode_test

This commit is contained in:
leafwai
2022-03-29 10:17:30 +08:00
10 changed files with 54 additions and 16 deletions

View File

@ -46,6 +46,7 @@ import com.gh.common.util.RunningUtils;
import com.gh.common.util.SPUtils;
import com.gh.common.util.ShareUtils;
import com.gh.common.util.StringUtils;
import com.gh.common.util.ToastUtils;
import com.gh.download.DownloadManager;
import com.gh.gamecenter.BuildConfig;
import com.gh.gamecenter.LoginActivity;
@ -253,6 +254,12 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Easy
EntranceUtils.saveShortcut(this.getClass().getName(), getIntent().getExtras());
return true;
});
} else {
tv.setOnLongClickListener(v -> {
SPUtils.setBoolean("dokit_enabled", true);
ToastUtils.toast("重启应用后即可启用辅助工具");
return true;
});
}
screenRootView.addView(view);