Skip to content

Commit 5780af0

Browse files
committed
validate method deleted
1 parent db19ae5 commit 5780af0

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

bootpay/src/main/java/kr/co/bootpay/valid/ValidRequest.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ private static Request validPGDialog(Context context, Request request) {
3131
List<Method> methodList = PGAvailable.getDefaultMethods(request);
3232
if(methodList == null) return request;
3333
if(methodList.size() == 1) request.setMethod(PGAvailable.methodToString(methodList.get(0)));
34-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
35-
boolean contain = false;
36-
for(Method method : methodList) {
37-
String strMethod = PGAvailable.methodToString(method).toLowerCase();
38-
if(strMethod.equals(request.getMethod().toLowerCase())) {
39-
contain = true;
40-
break;
41-
}
42-
}
43-
if(!contain) {
44-
final String string = request.getPG() + "'s " + request.getMethod() + " is not supported";
45-
errorDialog(context, string);
46-
}
47-
}
34+
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
35+
// boolean contain = false;
36+
// for(Method method : methodList) {
37+
// String strMethod = PGAvailable.methodToString(method).toLowerCase();
38+
// if(strMethod.equals(request.getMethod().toLowerCase())) {
39+
// contain = true;
40+
// break;
41+
// }
42+
// }
43+
// if(!contain) {
44+
// final String string = request.getPG() + "'s " + request.getMethod() + " is not supported";
45+
// errorDialog(context, string);
46+
// }
47+
// }
4848
return request;
4949
}
5050

sample/sample.iml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,6 @@
122122
<orderEntry type="module" module-name="bootpay" />
123123
<orderEntry type="module" module-name="bootpay" />
124124
<orderEntry type="module" module-name="bootpay" />
125+
<orderEntry type="module" module-name="bootpay" />
125126
</component>
126127
</module>

0 commit comments

Comments
 (0)