Skip to content

Commit 2f0db87

Browse files
author
hisyam
committed
remove commented code
1 parent 8ce8b7e commit 2f0db87

3 files changed

Lines changed: 7 additions & 19 deletions

File tree

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

molpayxdk/src/main/java/com/molpay/molpayxdk/MOLPayActivity.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,6 @@ protected void onCreate(Bundle savedInstanceState) {
184184
mpMainUI.setWebViewClient(new MPMainUIWebClient());
185185
mpMainUI.loadUrl("file:///android_asset/molpay-mobile-xdk-www/index.html");
186186

187-
// mpMainUI.loadUrl("https://www.cimbclicks.com.my/clicks/#/fpx?refId=3d5ad74c5202cecc2bcae04f7a0c316088f5a78a601d9a27913ef09edeffdb9a47f0e506ee208ff88494340a4a945dddeee7088c903fb1dc59e0b121a7330004631559cec169370cd9cf09547dcff090ac5c22fb5920e8063ec1f86d7ec8f1328db26b38dbd9e7c0ab5fda5388bab66730ede95ee309c17a27f7de5f1297b43f");
188-
// mpMainUI.loadUrl("https://www.molpay.com/seamless-demo-v3.16/index.html");
189-
// mpMainUI.loadUrl("https://www.onlinepayment.com.my/MOLPay/pay/molpay/cimb.php?amount=1.10&orderid=DEMO9521&bill_desc=testing+by+MOLPay&bill_name=MOLPay+Demo&bill_email=demo@molpay.com&bill_mobile=55218438&currency=MYR");
190-
// mpMainUI.loadUrl("https://www.cimbclicks.com.my/clicks/#/fpx?refId=5003a8b3a246552bd53c6d832720162019ec8407a844f122ca5b5f0be9e8747f9c6b039adeee9d11d574e035fa2a440ce158240992fa3760fc568aff6ad30abbcbeac1fe987326f4975ae668197b6f0a34415a3f17356327c043a120cf2293997ad33fcdc85a402ebe4839840c622001ccb83fac1c1c9daf4d47f792264b778c");
191-
192187
// Configure MOLPay ui
193188
mpMOLPayUI.getSettings().setAllowUniversalAccessFromFileURLs(true);
194189
mpMOLPayUI.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
@@ -445,7 +440,6 @@ public boolean shouldOverrideUrlLoading(WebView view, String url) {
445440

446441
byte[] decodedBytes = Base64.decode(base64Img, 0);
447442
imgBitmap = BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);
448-
// Log.d(MOLPAY, "Bitmap Img = " + imgBitmap);
449443

450444
isStoragePermissionGranted();
451445

@@ -472,12 +466,6 @@ public void onPageFinished(WebView view, String url) {
472466
mpMainUI.loadUrl("javascript:updateSdkData(" + json.toString() + ")");
473467

474468
}
475-
476-
// // CB-10395 InAppBrowser's WebView not storing cookies reliable to local device storage
477-
// if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
478-
// CookieManager.getInstance().flush();
479-
// }
480-
481469
}
482470

483471
}
@@ -489,13 +477,6 @@ private boolean storeImage(Bitmap image) {
489477

490478
FileOutputStream fOut = null;
491479
File file = new File(fullPath, filename);
492-
// if (file.exists()){
493-
// file.delete(); //DELETE existing file
494-
// fileName = "myfile.jpg";
495-
// file = new File(fullPath, filename);
496-
//
497-
// }
498-
// File file = new File(Environment.getExternalStorageDirectory(), "receipt.png");
499480
file.createNewFile();
500481
fOut = new FileOutputStream(file);
501482

0 commit comments

Comments
 (0)