From: Damyan Ivanov Date: Mon, 4 Apr 2022 16:18:43 +0000 (+0300) Subject: fix crash when restoring configuration backup X-Git-Tag: v0.21.2~2 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=eaf1e9a05e148c747b3e5bc59890df10d2648baa;p=mobile-ledger.git fix crash when restoring configuration backup --- 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