-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2、(替低版本网易云)修复评论区加载失败
- Loading branch information
Showing
11 changed files
with
102 additions
and
33 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
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
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
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
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/FixCommentView.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 com.raincat.dolby_beta.helper.SettingHelper; | ||
import com.raincat.dolby_beta.view.BaseDialogItem; | ||
|
||
/** | ||
* <pre> | ||
* author : RainCat | ||
* e-mail : nining377@gmail.com | ||
* time : 2021/11/30 | ||
* desc : 评论区加载失败 | ||
* version: 1.0 | ||
* </pre> | ||
*/ | ||
|
||
public class FixCommentView extends BaseDialogItem { | ||
public FixCommentView(Context context, AttributeSet attrs, int defStyle) { | ||
super(context, attrs, defStyle); | ||
} | ||
|
||
public FixCommentView(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
} | ||
|
||
public FixCommentView(Context context) { | ||
super(context); | ||
} | ||
|
||
@Override | ||
public void init(Context context, AttributeSet attrs) { | ||
super.init(context, attrs); | ||
title = SettingHelper.fix_comment_title; | ||
sub = SettingHelper.fix_comment_sub; | ||
key = SettingHelper.fix_comment_key; | ||
setData(true, SettingHelper.getInstance().getSetting(key)); | ||
|
||
setOnClickListener(view -> { | ||
SettingHelper.getInstance().setSetting(key, !checkBox.isChecked()); | ||
sendBroadcast(SettingHelper.refresh_setting); | ||
}); | ||
} | ||
} |