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

Commit da9a9da5 authored by dooyoung.hwang's avatar dooyoung.hwang Committed by android-build-merger
Browse files

Merge "Fix issue that Overview key doesn't work at secondary user"

am: 5379f47d

Change-Id: Ieaf3e7261e88f62cbbf748eb9ff94d03711f05c0
parents 88c21d59 5379f47d
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -16,11 +16,13 @@


package com.android.systemui;
package com.android.systemui;


import android.app.ActivityThread;
import android.app.Application;
import android.app.Application;
import android.content.BroadcastReceiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Context;
import android.content.Intent;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.IntentFilter;
import android.content.pm.ApplicationInfo;
import android.content.res.Configuration;
import android.content.res.Configuration;
import android.os.Process;
import android.os.Process;
import android.os.SystemProperties;
import android.os.SystemProperties;
@@ -105,6 +107,13 @@ public class SystemUIApplication extends Application {
                }
                }
            }, filter);
            }, filter);
        } else {
        } else {
            // We don't need to startServices for sub-process that is doing some tasks.
            // (screenshots, sweetsweetdesserts or tuner ..)
            String processName = ActivityThread.currentProcessName();
            ApplicationInfo info = getApplicationInfo();
            if (processName != null && processName.startsWith(info.processName + ":")) {
                return;
            }
            // For a secondary user, boot-completed will never be called because it has already
            // For a secondary user, boot-completed will never be called because it has already
            // been broadcasted on startup for the primary SystemUI process.  Instead, for
            // been broadcasted on startup for the primary SystemUI process.  Instead, for
            // components which require the SystemUI component to be initialized per-user, we
            // components which require the SystemUI component to be initialized per-user, we