|
@@ -11,6 +11,7 @@ package com.compdfkit.tools.compress;
|
|
|
|
|
|
import android.net.Uri;
|
|
|
import android.os.Environment;
|
|
|
+import android.text.InputFilter;
|
|
|
import android.text.TextUtils;
|
|
|
import android.view.View;
|
|
|
import android.widget.CompoundButton;
|
|
@@ -31,6 +32,7 @@ import com.compdfkit.tools.common.utils.CUriUtil;
|
|
|
import com.compdfkit.tools.common.utils.activitycontracts.CSelectPDFDocumentResultContract;
|
|
|
import com.compdfkit.tools.common.utils.threadpools.CThreadPoolUtils;
|
|
|
import com.compdfkit.tools.common.utils.viewutils.CViewUtils;
|
|
|
+import com.compdfkit.tools.common.utils.viewutils.EditTextUtils;
|
|
|
import com.compdfkit.tools.common.views.CToolBar;
|
|
|
import com.compdfkit.tools.common.views.CVerifyPasswordDialogFragment;
|
|
|
import com.compdfkit.tools.common.views.directory.CFileDirectoryDialog;
|
|
@@ -149,6 +151,7 @@ public class CPDFCompressDialog extends CBasicBottomSheetDialogFragment implemen
|
|
|
rbQualityHigh.setOnCheckedChangeListener(this);
|
|
|
rbQualityCustom.setOnCheckedChangeListener(this);
|
|
|
radioButtons.addAll(Arrays.asList(rbQualityLow, rbQualityStandard, rbQualityHigh, rbQualityCustom));
|
|
|
+ etCustomQuality.setFilters(new InputFilter[]{EditTextUtils.inputRangeFilter(1, 120)});
|
|
|
}
|
|
|
|
|
|
@Override
|