@@ -0,0 +1,1528 @@
+package com.kamontat.checkidnumber.api.getter;%0A%0Aimport android.Manifest;%0Aimport android.app.Activity;%0Aimport android.support.annotation.NonNull;%0Aimport android.support.v4.app.ActivityCompat;%0Aimport com.afollestad.materialdialogs.DialogAction;%0Aimport com.afollestad.materialdialogs.MaterialDialog;%0Aimport com.kamontat.checkidnumber.R;%0Aimport com.kamontat.checkidnumber.raw.Showable;%0A%0Aimport static com.kamontat.checkidnumber.view.MainActivity.PERMISSION_CODE;%0A%0A/**%0A * @author kamontat%0A * @version 1.0%0A * @since Sun 21/May/2017 - 4:17 PM%0A */%0Apublic class NonExport implements Showable %7B%0A%09private Activity root;%0A%09%0A%09public NonExport(Activity root) %7B%0A%09%09this.root = root;%0A%09%7D%0A%09%0A%09private MaterialDialog.Builder setting() %7B%0A%09%09return new MaterialDialog.Builder(root).title(getTitle()).content(getContent()).positiveText(R.string.yes).negativeText(R.string.no).onNegative(getRequestCallBack());%0A%09%7D%0A%09%0A%09private String getTitle() %7B%0A%09%09return root.getResources().getString(R.string.no_permission);%0A%09%7D%0A%09%0A%09private String getContent() %7B%0A%09%09return root.getResources().getString(R.string.ask_for_sure);%0A%09%7D%0A%09%0A%09private MaterialDialog.SingleButtonCallback getRequestCallBack() %7B%0A%09%09return new MaterialDialog.SingleButtonCallback() %7B%0A%09%09%09@Override%0A%09%09%09public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) %7B%0A%09%09%09%09ActivityCompat.requestPermissions(root, new String%5B%5D%7BManifest.permission.WRITE_EXTERNAL_STORAGE%7D, PERMISSION_CODE);%0A%09%09%09%7D%0A%09%09%7D;%0A%09%7D%0A%09%0A%09@Override%0A%09public void show() %7B%0A%09%09setting().canceledOnTouchOutside(true).show();%0A%09%7D%0A%7D%0A

Add non export dialog