1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-15 05:07:54 +01:00

Database Management Activity: Also remove "Delete Legacy Database" title when there is no legacy database.

The title caused me to press the button below and killing all my data from the last two years
This commit is contained in:
Andreas Shimokawa 2019-05-09 13:38:14 +02:00
parent 006d6af9e4
commit 5ecf3cadc8

View File

@ -75,6 +75,9 @@ public class DbManagementActivity extends AbstractGBActivity {
int oldDBVisibility = hasOldActivityDatabase() ? View.VISIBLE : View.GONE;
TextView deleteOldActivityTitle = findViewById(R.id.mergeOldActivityDataTitle);
deleteOldActivityTitle.setVisibility(oldDBVisibility);
Button deleteOldActivityDBButton = findViewById(R.id.deleteOldActivityDB);
deleteOldActivityDBButton.setVisibility(oldDBVisibility);
deleteOldActivityDBButton.setOnClickListener(new View.OnClickListener() {