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

Commit f7809b51 authored by Clark Scheff's avatar Clark Scheff Committed by Gerrit Code Review
Browse files

Merge "CM11 Themes: Reduce "unable to load asset" log spam" into cm-11.0

parents 6e19533f 46803461
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1017,9 +1017,16 @@ bool AssetManager::updateResTableFromAssetPath(ResTable *rt, const asset_path& a
        if (oidmap != NULL) {
            delete oidmap;
        }
    } else {
        if (!ap.resfilePath.isEmpty()) {
            // when attempting to load common resources that may not exist we would see
            // numerous "Unable to load asset ..." messages in the log. We really don't need
             // to be spamming the user's log with this since it is not a critical problem
            ALOGV("Unable to load asset %s, ResTable not updated", ap.resfilePath.string());
        } else {
            ALOGW("Unable to load asset %s, ResTable not updated", ap.path.string());
        }
    }

    return (error == NO_ERROR);
}