|
28 | 28 | import androidx.annotation.NonNull; |
29 | 29 | import de.cotech.hw.openpgp.OpenPgpSecurityKey; |
30 | 30 | import de.cotech.hw.openpgp.OpenPgpSecurityKeyConnectionModeConfig; |
31 | | -import de.cotech.hw.piv.PivSecurityKey; |
| 31 | +//import de.cotech.hw.piv.PivSecurityKey; |
32 | 32 | import de.cotech.hw.ui.internal.OpenPgpSecurityKeyDialogFragment; |
33 | | -import de.cotech.hw.ui.internal.PivSecurityKeyDialogFragment; |
| 33 | +//import de.cotech.hw.ui.internal.PivSecurityKeyDialogFragment; |
34 | 34 |
|
35 | 35 | public class SecurityKeyDialogFactory { |
36 | 36 |
|
@@ -58,23 +58,23 @@ public static SecurityKeyDialogFragment<OpenPgpSecurityKey> newOpenPgpInstance(@ |
58 | 58 | return fragment; |
59 | 59 | } |
60 | 60 |
|
61 | | - public static SecurityKeyDialogFragment<PivSecurityKey> newPivInstance() { |
62 | | - return newPivInstance(SecurityKeyDialogOptions.builder().build()); |
63 | | - } |
64 | | - |
65 | | - public static SecurityKeyDialogFragment<PivSecurityKey> newPivInstance(@NonNull SecurityKeyDialogOptions options) { |
66 | | - try { |
67 | | - Class.forName("de.cotech.hw.piv.PivSecurityKey"); |
68 | | - } catch (ClassNotFoundException e) { |
69 | | - throw new IllegalArgumentException("You must include the hwsecurity-piv Maven artifact!"); |
70 | | - } |
71 | | - |
72 | | - Bundle args = new Bundle(); |
73 | | - args.putParcelable(PivSecurityKeyDialogFragment.ARG_DIALOG_OPTIONS, options); |
74 | | - |
75 | | - PivSecurityKeyDialogFragment fragment = new PivSecurityKeyDialogFragment(); |
76 | | - fragment.setArguments(args); |
77 | | - return fragment; |
78 | | - } |
| 61 | +// public static SecurityKeyDialogFragment<PivSecurityKey> newPivInstance() { |
| 62 | +// return newPivInstance(SecurityKeyDialogOptions.builder().build()); |
| 63 | +// } |
| 64 | +// |
| 65 | +// public static SecurityKeyDialogFragment<PivSecurityKey> newPivInstance(@NonNull SecurityKeyDialogOptions options) { |
| 66 | +// try { |
| 67 | +// Class.forName("de.cotech.hw.piv.PivSecurityKey"); |
| 68 | +// } catch (ClassNotFoundException e) { |
| 69 | +// throw new IllegalArgumentException("You must include the hwsecurity-piv Maven artifact!"); |
| 70 | +// } |
| 71 | +// |
| 72 | +// Bundle args = new Bundle(); |
| 73 | +// args.putParcelable(PivSecurityKeyDialogFragment.ARG_DIALOG_OPTIONS, options); |
| 74 | +// |
| 75 | +// PivSecurityKeyDialogFragment fragment = new PivSecurityKeyDialogFragment(); |
| 76 | +// fragment.setArguments(args); |
| 77 | +// return fragment; |
| 78 | +// } |
79 | 79 |
|
80 | 80 | } |
0 commit comments