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

Commit 6015c072 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Small fix to addconfig in statsd."

parents bed44e64 7d8aa4de
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -733,7 +733,10 @@ Status StatsService::addConfiguration(const String16& key,
        string keyString = string(String8(key).string());
        ConfigKey configKey(ipc->getCallingUid(), keyString);
        StatsdConfig cfg;
        cfg.ParseFromArray(&config[0], config.size());
        if (!cfg.ParseFromArray(&config[0], config.size())) {
            *success = false;
            return Status::ok();
        }
        mConfigManager->UpdateConfig(configKey, cfg);
        mConfigManager->SetConfigReceiver(configKey, string(String8(package).string()),
                                          string(String8(cls).string()));