mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-05 09:47:01 +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:
parent
006d6af9e4
commit
5ecf3cadc8
@ -75,6 +75,9 @@ public class DbManagementActivity extends AbstractGBActivity {
|
|||||||
|
|
||||||
int oldDBVisibility = hasOldActivityDatabase() ? View.VISIBLE : View.GONE;
|
int oldDBVisibility = hasOldActivityDatabase() ? View.VISIBLE : View.GONE;
|
||||||
|
|
||||||
|
TextView deleteOldActivityTitle = findViewById(R.id.mergeOldActivityDataTitle);
|
||||||
|
deleteOldActivityTitle.setVisibility(oldDBVisibility);
|
||||||
|
|
||||||
Button deleteOldActivityDBButton = findViewById(R.id.deleteOldActivityDB);
|
Button deleteOldActivityDBButton = findViewById(R.id.deleteOldActivityDB);
|
||||||
deleteOldActivityDBButton.setVisibility(oldDBVisibility);
|
deleteOldActivityDBButton.setVisibility(oldDBVisibility);
|
||||||
deleteOldActivityDBButton.setOnClickListener(new View.OnClickListener() {
|
deleteOldActivityDBButton.setOnClickListener(new View.OnClickListener() {
|
||||||
|
Loading…
Reference in New Issue
Block a user