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

Commit 46803461 authored by Clark Scheff's avatar Clark Scheff
Browse files

CM11 Themes: Reduce "unable to load asset" log spam

With the introduction of a "common" resource folder for themes,
we always try to attach the common resource table and if it does
not exist it won't be attached but we would see this log spam.

Change-Id: Ida4e815523fd71b34fe8f3b41cef3432e6e07b64
parent 3a951da9
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);
}