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

Commit 826d17c0 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

A little more on #2256270: Package manager sends bad broadcasts when components change

Don't go through all this work if the enabled state hasn't changed.

Change-Id: If7393f53d6c0d0770960bb37bcaa5adebdbb3099
parent d05fd6c3
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -12817,6 +12817,11 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
                mConfiguration = newConfig;
                Log.i(TAG, "Config changed: " + newConfig);
                
                AttributeCache ac = AttributeCache.instance();
                if (ac != null) {
                    ac.updateConfiguration(mConfiguration);
                }
                Message msg = mHandler.obtainMessage(UPDATE_CONFIGURATION_MSG);
                msg.obj = new Configuration(mConfiguration);
                mHandler.sendMessage(msg);
@@ -12843,11 +12848,6 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
                            null, null, 0, null, null,
                            null, false, false, MY_PID, Process.SYSTEM_UID);
                }
                
                AttributeCache ac = AttributeCache.instance();
                if (ac != null) {
                    ac.updateConfiguration(mConfiguration);
                }
            }
        }