Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cd9a764 authored by Fyodor Kupolov's avatar Fyodor Kupolov Committed by android-build-merger
Browse files

Correctly handle a case when there are no preloaded apps am: 28ba2898 am: 90e4b0dd

am: d05339fb

Change-Id: Ibdddd3b1f0a67278b78306356f28852c867fb64b
parents 80c23cc2 d05339fb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -67,10 +67,11 @@ class PreloadAppsInstaller {

    void installApps(int userId) {
        File[] files = preloadsAppsDirectory.listFiles();
        AppInstallCounter counter = new AppInstallCounter(mContext, userId);
        if (ArrayUtils.isEmpty(files)) {
            counter.setExpectedAppsCount(0);
            return;
        }
        AppInstallCounter counter = new AppInstallCounter(mContext, userId);
        int expectedCount = 0;
        for (File file : files) {
            String apkName = file.getName();