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

Commit d05339fb 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

Change-Id: I3b3fb471b5c601fa86a4f6f6d7e60eca6a622008
parents 72c39b50 90e4b0dd
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();