调整画质选择UI逻辑

This commit is contained in:
2023-01-03 11:35:34 +08:00
parent a1d95d6a94
commit 76055543c3
4 changed files with 7 additions and 22 deletions

View File

@@ -31,6 +31,7 @@ public class LiveClarityCustomPopup extends BottomPopupView implements View.OnCl
private ImageView titleSDImg, titleHDImg, titleFHDImg;
private TextView titleSDText, titleHDText, titleFHDText;
private int banSelect;
private boolean isUser = false;
public int getSelectClarity() {
return selectClarity;
@@ -42,6 +43,7 @@ public class LiveClarityCustomPopup extends BottomPopupView implements View.OnCl
if (selectClarity == -1) {
selectClarity = 0;
}
this.isUser = true;
this.selectClarity = selectClarity;
}
@@ -99,7 +101,7 @@ public class LiveClarityCustomPopup extends BottomPopupView implements View.OnCl
//高清
ViewClicksAntiShake.clicksAntiShake(lineHd, () -> {
String memorg = formateFileSize(Long.parseLong(DeviceUtils.getMemory(getContext())));
if (Double.parseDouble(memorg) > 7 && netAverage > 100) {
if ((Double.parseDouble(memorg) > 7 && netAverage > 100) || isUser) {
selectClarity = 1;
selectClarity(selectClarity);
dismiss();