- UID
- 7477406
- 性别
- 保密
- 注册时间
- 2023-10-31
- 威望
-
- 金币
-
- Z币
-
- 听众
|
public void onHomePressed() {
if (getSharedPreferences("general_file", 0).getBoolean("home_buzaitixing", true)) {
Intent intent = new Intent(this, (Class<?>) IndexActivity.class);
intent.addFlags(268435456);
PendingIntent.getActivity(this, 0, intent, 0).send();
}
}
代码优化一下
|
|