mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Allow choose backup restore flow to work on pre-API29 devices.
This commit is contained in:
committed by
Greyson Parrelli
parent
9366596f5f
commit
5d96bc2d3a
@@ -109,7 +109,7 @@ public class FullBackupImporter extends FullBackupBase {
|
||||
}
|
||||
|
||||
private static @NonNull InputStream getInputStream(@NonNull Context context, @NonNull Uri uri) throws IOException{
|
||||
if (BackupUtil.isUserSelectionRequired(context)) {
|
||||
if (BackupUtil.isUserSelectionRequired(context) || uri.getScheme().equals("content")) {
|
||||
return Objects.requireNonNull(context.getContentResolver().openInputStream(uri));
|
||||
} else {
|
||||
return new FileInputStream(new File(Objects.requireNonNull(uri.getPath())));
|
||||
|
||||
Reference in New Issue
Block a user