Notify about accidentally disabled backups.

This commit is contained in:
Greyson Parrelli
2020-10-29 13:32:55 -04:00
committed by GitHub
parent d1478c5ce0
commit b5d6cb2a8d
10 changed files with 135 additions and 43 deletions

View File

@@ -18,7 +18,6 @@ import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.text.HtmlCompat;
import androidx.documentfile.provider.DocumentFile;
import androidx.fragment.app.Fragment;
import org.greenrobot.eventbus.EventBus;
@@ -165,7 +164,7 @@ public class BackupsPreferenceFragment extends Fragment {
} else if (StorageUtil.canWriteInSignalStorageDir()) {
try {
folder.setVisibility(View.VISIBLE);
folderName.setText(StorageUtil.getBackupDirectory().getPath());
folderName.setText(StorageUtil.getOrCreateBackupDirectory().getPath());
} catch (NoExternalStorageException e) {
Log.w(TAG, "Could not display folder name.", e);
}