From 870efc49ea7a7291d816e398ef36eb55bf5c5e7a Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Tue, 6 Aug 2019 16:15:17 +0200 Subject: [PATCH] Fixed using mapping function incorrectly --- .../com/topjohnwu/magisk/data/repository/MagiskRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/data/repository/MagiskRepository.kt b/app/src/main/java/com/topjohnwu/magisk/data/repository/MagiskRepository.kt index 4ab4ec0c6..bc69296c2 100644 --- a/app/src/main/java/com/topjohnwu/magisk/data/repository/MagiskRepository.kt +++ b/app/src/main/java/com/topjohnwu/magisk/data/repository/MagiskRepository.kt @@ -36,7 +36,7 @@ class MagiskRepository( } else { Single.just(it) } - }.map { Info.remote = it; it } + }.doOnSuccess { Info.remote = it } fun fetchApps() = Single.fromCallable { packageManager.getInstalledApplications(0) }