From eaf1e9a05e148c747b3e5bc59890df10d2648baa Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 4 Apr 2022 19:18:43 +0300 Subject: [PATCH] fix crash when restoring configuration backup --- .../main/java/net/ktnx/mobileledger/backup/ConfigReader.java | 4 ++-- build.gradle | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/backup/ConfigReader.java b/app/src/main/java/net/ktnx/mobileledger/backup/ConfigReader.java index 7959da51..187eb9b7 100644 --- a/app/src/main/java/net/ktnx/mobileledger/backup/ConfigReader.java +++ b/app/src/main/java/net/ktnx/mobileledger/backup/ConfigReader.java @@ -1,5 +1,5 @@ /* - * Copyright © 2021 Damyan Ivanov. + * Copyright © 2022 Damyan Ivanov. * This file is part of MoLe. * MoLe is free software: you can distribute it and/or modify it * under the term of the GNU General Public License as published by @@ -45,7 +45,7 @@ public class ConfigReader extends ConfigIO { } @Override protected void initStream() { - RawConfigReader r = new RawConfigReader(new FileInputStream(pfd.getFileDescriptor())); + r = new RawConfigReader(new FileInputStream(pfd.getFileDescriptor())); } @Override protected void processStream() throws IOException { diff --git a/build.gradle b/build.gradle index 38a6fe30..dca88990 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ /* - * Copyright © 2021 Damyan Ivanov. + * Copyright © 2022 Damyan Ivanov. * This file is part of MoLe. * MoLe is free software: you can distribute it and/or modify it * under the term of the GNU General Public License as published by @@ -24,7 +24,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:4.2.0' + classpath 'com.android.tools.build:gradle:7.0.4' // NOTE: Do not place your application dependencies here; they belong -- 2.39.5