Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 1ffb559a authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

EN: Adjust export UI

parent 0a9d4869
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -30,11 +30,12 @@
    <string name="pref_exposure_app_api_usage_title">Nutzung der API in den letzten 14 Tagen</string>
    <string name="pref_exposure_app_api_usage_title">Nutzung der API in den letzten 14 Tagen</string>
    <string name="pref_exposure_app_api_usage_summary_line"><xliff:g example="12">%1$d</xliff:g> Aufrufe von <xliff:g example="provideDiagnosisKeys">%2$s</xliff:g></string>
    <string name="pref_exposure_app_api_usage_summary_line"><xliff:g example="12">%1$d</xliff:g> Aufrufe von <xliff:g example="provideDiagnosisKeys">%2$s</xliff:g></string>
    <string name="prefcat_exposure_rpis_histogram_title"><xliff:g example="230">%1$d</xliff:g> gesammelte IDs</string>
    <string name="prefcat_exposure_rpis_histogram_title"><xliff:g example="230">%1$d</xliff:g> gesammelte IDs</string>
    <string name="pref_exposure_rpi_delete_all_title">Alle gesammelten IDs löschen</string>
    <string name="pref_exposure_rpi_delete_all_title">Löschen</string>
    <string name="pref_exposure_rpi_delete_all_summary">Alle gesammelten IDs löschen</string>
    <string name="pref_exposure_rpi_delete_all_warning">Nach dem Löschen der gesammelten IDs kannst du nicht mehr informiert werden, falls einer deiner Kontakte der letzten 14 Tage positiv getested wurde.</string>
    <string name="pref_exposure_rpi_delete_all_warning">Nach dem Löschen der gesammelten IDs kannst du nicht mehr informiert werden, falls einer deiner Kontakte der letzten 14 Tage positiv getested wurde.</string>
    <string name="pref_exposure_rpi_delete_all_warning_confirm_button">Trotzdem löschen</string>
    <string name="pref_exposure_rpi_delete_all_warning_confirm_button">Trotzdem löschen</string>
    <string name="pref_exposure_rpi_export_title">Datenbank Export</string>
    <string name="pref_exposure_rpi_export_title">Exportieren</string>
    <string name="pref_exposure_rpi_export_summary">Exportiere die aktuelle Datenbank um sie mit einer anderen App zu analysieren.</string>
    <string name="pref_exposure_rpi_export_summary">Exportiere gesammelte IDs zur weiteren Analyse mit einer anderen App.</string>
    <string name="pref_exposure_info_summary">"Die Exposure Notifications API ermöglicht es Apps, dich zu warnen, falls du Kontakt zu einer positiv getesteten Person hattest.
    <string name="pref_exposure_info_summary">"Die Exposure Notifications API ermöglicht es Apps, dich zu warnen, falls du Kontakt zu einer positiv getesteten Person hattest.


Das Datum, die Zeitdauer und die Signalstärke, die dem Kontakt zugeordnet sind, werden mit der zugehörigen App geteilt."</string>
Das Datum, die Zeitdauer und die Signalstärke, die dem Kontakt zugeordnet sind, werden mit der zugehörigen App geteilt."</string>
+4 −3
Original line number Original line Diff line number Diff line
@@ -40,11 +40,12 @@
    <string name="pref_exposure_app_api_usage_title">API usage in the last 14 days</string>
    <string name="pref_exposure_app_api_usage_title">API usage in the last 14 days</string>
    <string name="pref_exposure_app_api_usage_summary_line"><xliff:g example="12">%1$d</xliff:g> calls to <xliff:g example="provideDiagnosisKeys">%2$s</xliff:g></string>
    <string name="pref_exposure_app_api_usage_summary_line"><xliff:g example="12">%1$d</xliff:g> calls to <xliff:g example="provideDiagnosisKeys">%2$s</xliff:g></string>
    <string name="prefcat_exposure_rpis_histogram_title"><xliff:g example="230">%1$d</xliff:g> IDs collected</string>
    <string name="prefcat_exposure_rpis_histogram_title"><xliff:g example="230">%1$d</xliff:g> IDs collected</string>
    <string name="pref_exposure_rpi_delete_all_title">Delete all collected IDs</string>
    <string name="pref_exposure_rpi_delete_all_title">Delete</string>
    <string name="pref_exposure_rpi_delete_all_summary">Delete all collected IDs</string>
    <string name="pref_exposure_rpi_delete_all_warning">Deleting collected IDs will make it impossible to notify you in case any of your contacts of the last 14 days is diagnosed.</string>
    <string name="pref_exposure_rpi_delete_all_warning">Deleting collected IDs will make it impossible to notify you in case any of your contacts of the last 14 days is diagnosed.</string>
    <string name="pref_exposure_rpi_delete_all_warning_confirm_button">Delete anyways</string>
    <string name="pref_exposure_rpi_delete_all_warning_confirm_button">Delete anyways</string>
    <string name="pref_exposure_rpi_export_title">Export Database</string>
    <string name="pref_exposure_rpi_export_title">Export</string>
    <string name="pref_exposure_rpi_export_summary">Export the current database for analysis with another app.</string>
    <string name="pref_exposure_rpi_export_summary">Export collected IDs for extended analysis with another app.</string>
    <string name="pref_exposure_info_summary">"Exposure Notifications API allows apps to notify you if you were exposed to someone who reported to be diagnosed positive.
    <string name="pref_exposure_info_summary">"Exposure Notifications API allows apps to notify you if you were exposed to someone who reported to be diagnosed positive.


The date, duration, and signal strength associated with an exposure will be shared with the corresponding app."</string>
The date, duration, and signal strength associated with an exposure will be shared with the corresponding app."</string>
+4 −5
Original line number Original line Diff line number Diff line
@@ -13,16 +13,15 @@
            android:key="pref_exposure_rpi_histogram"
            android:key="pref_exposure_rpi_histogram"
            tools:layout="@layout/preference_bar_chart" />
            tools:layout="@layout/preference_bar_chart" />
    </PreferenceCategory>
    </PreferenceCategory>
    <PreferenceCategory android:layout="@layout/preference_category_no_label">
        <Preference
            android:key="pref_exposure_rpi_delete_all"
            android:title="@string/pref_exposure_rpi_delete_all_title" />
    </PreferenceCategory>
    <PreferenceCategory android:layout="@layout/preference_category_no_label">
    <PreferenceCategory android:layout="@layout/preference_category_no_label">
        <Preference
        <Preference
            android:key="pref_exposure_export_database"
            android:key="pref_exposure_export_database"
            android:title="@string/pref_exposure_rpi_export_title"
            android:title="@string/pref_exposure_rpi_export_title"
            android:summary="@string/pref_exposure_rpi_export_summary" />
            android:summary="@string/pref_exposure_rpi_export_summary" />
        <Preference
            android:key="pref_exposure_rpi_delete_all"
            android:summary="@string/pref_exposure_rpi_delete_all_summary"
            android:title="@string/pref_exposure_rpi_delete_all_title" />
    </PreferenceCategory>
    </PreferenceCategory>
    <PreferenceCategory android:layout="@layout/preference_category_no_label">
    <PreferenceCategory android:layout="@layout/preference_category_no_label">
        <org.microg.gms.ui.TextPreference
        <org.microg.gms.ui.TextPreference
+1 −1
Original line number Original line Diff line number Diff line
@@ -975,7 +975,7 @@ class ExposureDatabase private constructor(private val context: Context) : SQLit
            // Create a new database which will store only the Advertisements table
            // Create a new database which will store only the Advertisements table
            val exportDir = File(context.getCacheDir(), "exposureDatabase")
            val exportDir = File(context.getCacheDir(), "exposureDatabase")
            exportDir.mkdir()
            exportDir.mkdir()
            val exportFile = File(exportDir, "database.db")
            val exportFile = File(exportDir, "exposure.db")
            if (exportFile.delete()) {
            if (exportFile.delete()) {
                Log.d("EN-DB-Exporter", "Deleted old export database.")
                Log.d("EN-DB-Exporter", "Deleted old export database.")
            }
            }