diff --git a/res/layout/activity_backup_restore.xml b/res/layout/activity_backup_restore.xml index 210cdb59c5..e5090228d8 100644 --- a/res/layout/activity_backup_restore.xml +++ b/res/layout/activity_backup_restore.xml @@ -49,7 +49,7 @@ android:layout_marginLeft="@dimen/very_large_spacing" android:layout_marginTop="4dp" android:layout_marginRight="@dimen/very_large_spacing" - android:text="@{RestoreBackupViewModel.uriToFileName(buttonSelectFile, viewModel.backupFile), default=`Select a file`}"/> + android:text="@{BackupRestoreViewModel.uriToFileName(buttonSelectFile, viewModel.backupFile), default=`Select a file`}"/> + android:visibility="@{BackupRestoreViewModel.validateData(viewModel.backupFile, viewModel.backupPassphrase) ? View.VISIBLE : View.INVISIBLE}"/>