Implement deactivation of Applets

Actually implements and fixes what was intended with
f401923005
This commit is contained in:
Frank Morgner
2016-04-12 22:01:50 -04:00
parent 0aeb8a1859
commit 65cbac22c5
10 changed files with 148 additions and 253 deletions

View File

@@ -13,11 +13,6 @@
android:icon="@drawable/ic_action_delete"
app:showAsAction="withText" />
<item android:id="@+id/action_delete"
android:title="@string/action_delete"
android:icon="@drawable/ic_action_delete"
app:showAsAction="withText" />
<item
android:id="@+id/action_settings"
android:orderInCategory="100"

View File

@@ -4,11 +4,36 @@
<PreferenceCategory
android:title="Java Card Emulator">
<Preference
android:title="NFC System Settings"
android:summary="NFC needs to be enabled for emulating a contactless smart card"
android:key="nfcSettings">
</Preference>
<SwitchPreference
android:title="@string/applet_helloworld"
android:switchTextOn="@string/aid_helloworld"
android:key="activate_helloworld"
android:defaultValue="false"
/>
<SwitchPreference
android:title="@string/applet_openpgp"
android:switchTextOn="@string/aid_openpgp"
android:key="activate_openpgp"
android:defaultValue="true"
/>
<SwitchPreference
android:title="@string/applet_oath"
android:switchTextOn="@string/aid_oath"
android:key="activate_oath"
android:defaultValue="true"
/>
<SwitchPreference
android:title="@string/applet_isoapplet"
android:switchTextOn="@string/aid_isoapplet"
android:key="activate_isoapplet"
android:defaultValue="true"
/>
<SwitchPreference
android:title="@string/applet_gidsapplet"
android:switchTextOn="@string/aid_gidsapplet"
android:key="activate_gidsapplet"
android:defaultValue="true"
/>
</PreferenceCategory>