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

Commit 7d5fd33d authored by Josh Hou's avatar Josh Hou
Browse files

Add one item in ApplicationLocalesChanged atom

Add one more item to distinguish the caller that calling the setApplicationLocales API

Bug: 272741428
Test: Build pass
Change-Id: I374b1a94f7b327d939bf37c52aa0dee39f889ae9
parent 51018a1b
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -30,7 +30,8 @@ public final class AppLocaleChangedAtomRecord {
    String mPrevLocales = "";
    int mStatus = FrameworkStatsLog
            .APPLICATION_LOCALES_CHANGED__STATUS__STATUS_UNSPECIFIED;

    int mCaller = FrameworkStatsLog
            .APPLICATION_LOCALES_CHANGED__CALLER__CALLER_UNKNOWN;
    AppLocaleChangedAtomRecord(int callingUid) {
        this.mCallingUid = callingUid;
    }
@@ -50,4 +51,8 @@ public final class AppLocaleChangedAtomRecord {
    void setStatus(int status) {
        this.mStatus = status;
    }

    void setCaller(int caller) {
        this.mCaller = caller;
    }
}
+2 −1
Original line number Diff line number Diff line
@@ -554,7 +554,8 @@ public class LocaleManagerService extends SystemService {
                atomRecordForMetrics.mTargetUid,
                atomRecordForMetrics.mNewLocales,
                atomRecordForMetrics.mPrevLocales,
                atomRecordForMetrics.mStatus);
                atomRecordForMetrics.mStatus,
                atomRecordForMetrics.mCaller);
    }

    /**