调整画质选择UI逻辑
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user