forked from nining377/dolby_beta
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from CoolestEnoch/master
关闭自动签到,添加重置模块选项,CI版本中自动获取最新的脚本
- Loading branch information
Showing
6 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
app/src/main/java/com/raincat/dolby_beta/view/setting/ResetModuleView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.raincat.dolby_beta.view.setting; | ||
|
||
import android.content.Context; | ||
import android.util.AttributeSet; | ||
import android.widget.Toast; | ||
|
||
import com.raincat.dolby_beta.helper.SettingHelper; | ||
import com.raincat.dolby_beta.hook.SettingHook; | ||
import com.raincat.dolby_beta.view.BaseDialogItem; | ||
|
||
/** | ||
* time : 2024/01/04 | ||
* desc : 重置模块 | ||
* version: 1.0 | ||
* </pre> | ||
*/ | ||
|
||
public class ResetModuleView extends BaseDialogItem { | ||
public ResetModuleView(Context context, AttributeSet attrs, int defStyle) { | ||
super(context, attrs, defStyle); | ||
} | ||
|
||
public ResetModuleView(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
} | ||
|
||
public ResetModuleView(Context context) { | ||
super(context); | ||
} | ||
|
||
@Override | ||
public void init(Context context, AttributeSet attrs) { | ||
super.init(context, attrs); | ||
title = "重置模块"; | ||
sub = "模块出现问题可以尝试重置"; | ||
setData( false, false); | ||
|
||
setOnClickListener(view -> { | ||
SettingHelper.getInstance().resetSetting(); | ||
sendBroadcast(SettingHelper.refresh_setting); | ||
Toast.makeText(context, "重置完成,手动重启网易云生效", Toast.LENGTH_SHORT).show(); | ||
}); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters