去除部分无用类
This commit is contained in:
@@ -110,10 +110,6 @@ public class CustomTypeFilterPopupView extends PartShadowPopupView implements Vi
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case R.id.tv_finish:
|
case R.id.tv_finish:
|
||||||
if(!mSelManual && !mSelAuto){
|
|
||||||
ToastUtil.showShort(mContext,mContext.getString(R.string.history_filter_type_toast));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if(listener != null){
|
if(listener != null){
|
||||||
listener.callBack(mSelManual,mSelAuto);
|
listener.callBack(mSelManual,mSelAuto);
|
||||||
this.dismiss();
|
this.dismiss();
|
||||||
|
|||||||
@@ -180,11 +180,12 @@ public class TabHistoryFragment extends BaseFragment<TabHistoryFragmentLayoutBin
|
|||||||
.asCustom(new CustomTypeFilterPopupView(getContext(), new CustomTypeFilterPopupView.OnClickListener() {
|
.asCustom(new CustomTypeFilterPopupView(getContext(), new CustomTypeFilterPopupView.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void callBack(boolean mSelManual, boolean mSelAuto) {
|
public void callBack(boolean mSelManual, boolean mSelAuto) {
|
||||||
if(mSelManual){
|
if (mSelManual) {
|
||||||
mFilterType = 1;
|
mFilterType = 1;
|
||||||
}
|
} else if (mSelAuto) {
|
||||||
if(mSelAuto){
|
|
||||||
mFilterType = 0;
|
mFilterType = 0;
|
||||||
|
} else {
|
||||||
|
mFilterType = -1;
|
||||||
}
|
}
|
||||||
getWaterHistoryList();
|
getWaterHistoryList();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user