mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-30 12:32:17 -05:00
remove unused code
This commit is contained in:
parent
b3d51b8b80
commit
283037acf5
@ -69,53 +69,4 @@ public class QrCodeUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Displays QrCode in Dialog
|
|
||||||
*/
|
|
||||||
// public static void showQrCode(Activity activity, Bitmap qrCodeBitmap) {
|
|
||||||
// final Dialog dialog = new Dialog(activity);
|
|
||||||
// dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
|
||||||
// dialog.setContentView(R.layout.qr_code_dialog);
|
|
||||||
// final ImageView imageView = (ImageView) dialog.findViewById(R.id.qr_dialog_view);
|
|
||||||
// imageView.setImageBitmap(qrCodeBitmap);
|
|
||||||
// dialog.setCanceledOnTouchOutside(true);
|
|
||||||
// dialog.show();
|
|
||||||
// imageView.setOnClickListener(new OnClickListener() {
|
|
||||||
// public void onClick(final View v) {
|
|
||||||
// dialog.dismiss();
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Starts Scanning of Barcode with Barcode Scanner App, if Barcode Scanner is not installed
|
|
||||||
* requests install of it, done by using IntentIntegrator from Barcode Scanner
|
|
||||||
*
|
|
||||||
* @param activity
|
|
||||||
*/
|
|
||||||
// public static void scanQrCode(Activity activity) {
|
|
||||||
// IntentIntegrator.initiateScan(activity, R.string.no_barcode_scanner_title,
|
|
||||||
// R.string.no_barcode_scanner, R.string.button_yes, R.string.button_no);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// /**
|
|
||||||
// * Return scanned QR Code as String, must be used in Activities onActivityResult(), done by
|
|
||||||
// * using IntentIntegrator from Barcode Scanner
|
|
||||||
// *
|
|
||||||
// * @param requestCode
|
|
||||||
// * @param resultCode
|
|
||||||
// * @param intent
|
|
||||||
// * @return QR Code content as String
|
|
||||||
// */
|
|
||||||
// public static String returnQrCodeOnActivityResult(int requestCode, int resultCode, Intent
|
|
||||||
// intent) {
|
|
||||||
// IntentResult scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode,
|
|
||||||
// intent);
|
|
||||||
//
|
|
||||||
// if (scanResult != null) {
|
|
||||||
// return scanResult.getContents();
|
|
||||||
// } else {
|
|
||||||
// return null;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user