فهرست منبع

ComPDFKit Tools(Android) - 修改类名

libai 1 سال پیش
والد
کامیت
3a5984d1ff

+ 9 - 9
compdfkit-tools/src/main/java/com/compdfkit/tools/dialog/CommonInputDialog.java

@@ -19,7 +19,7 @@ import com.compdfkit.tools.R;
  * @date 2020-02-21 11:42
  * @description
  */
-public class CommonInputDialog extends AppCompatDialog {
+public class CCommonInputDialog extends AppCompatDialog {
 
     private Context context;
 
@@ -44,17 +44,17 @@ public class CommonInputDialog extends AppCompatDialog {
     private Button cancelBt;
     private Button okBt;
 
-    public CommonInputDialog(Context context) {
+    public CCommonInputDialog(Context context) {
         super(context);
         initView(context);
     }
 
-    public CommonInputDialog(Context context, int theme) {
+    public CCommonInputDialog(Context context, int theme) {
         super(context, theme);
         initView(context);
     }
 
-    protected CommonInputDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
+    protected CCommonInputDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
         super(context, cancelable, cancelListener);
         initView(context);
     }
@@ -124,31 +124,31 @@ public class CommonInputDialog extends AppCompatDialog {
         messageEt.setInputType(type);
     }
 
-    public CommonInputDialog setTitle(String title) {
+    public CCommonInputDialog setTitle(String title) {
         this.title = title;
         titleTv.setText(title);
         return this;
     }
 
-    public CommonInputDialog setMessage(String message) {
+    public CCommonInputDialog setMessage(String message) {
         this.messageStrTv = message;
         messageTv.setText(message);
         return this;
     }
 
-    public CommonInputDialog setHintInputText(String message) {
+    public CCommonInputDialog setHintInputText(String message) {
         this.message = message;
         messageEt.setHint(message);
         return this;
     }
 
-    public CommonInputDialog setCancelCallback(String cancelStr, Runnable cancelCallback) {
+    public CCommonInputDialog setCancelCallback(String cancelStr, Runnable cancelCallback) {
         this.cancelStr = cancelStr;
         this.cancelCallback = cancelCallback;
         return this;
     }
 
-    public CommonInputDialog setOkCallback(String okStr, OnInputConpleteListener onInputConpleteListener) {
+    public CCommonInputDialog setOkCallback(String okStr, OnInputConpleteListener onInputConpleteListener) {
         this.okStr = okStr;
         this.onInputConpleteListener = onInputConpleteListener;
         return this;

+ 4 - 4
compdfkit-tools/src/main/java/com/compdfkit/tools/dialog/GotoPageDialog.java

@@ -6,21 +6,21 @@ import android.text.TextUtils;
 
 import com.compdfkit.tools.R;
 
-public class GotoPageDialog extends CommonInputDialog {
+public class CGotoPageDialog extends CCommonInputDialog {
 
     private OnGotoPageListener onGotoPageListener = null;
 
-    public GotoPageDialog(Context context) {
+    public CGotoPageDialog(Context context) {
         super(context);
         initDialogView();
     }
 
-    public GotoPageDialog(Context context, int theme) {
+    public CGotoPageDialog(Context context, int theme) {
         super(context, theme);
         initDialogView();
     }
 
-    protected GotoPageDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
+    protected CGotoPageDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
         super(context, cancelable, cancelListener);
         initDialogView();
     }

+ 0 - 1
compdfkit-tools/src/main/java/com/compdfkit/tools/search/CSearchTextInfo.java

@@ -10,7 +10,6 @@ import androidx.core.content.ContextCompat;
 
 import com.compdfkit.core.page.CPDFTextPage;
 import com.compdfkit.core.page.CPDFTextRange;
-import com.compdfkit.demo.R;
 import com.compdfkit.tools.R;
 
 import java.util.regex.Matcher;