Merge "Explicitly set ENABLED state when a user enables an app."
This commit is contained in:
committed by
Android (Google) Code Review
commit
31607521da
@@ -982,11 +982,9 @@ public class InstalledAppDetails extends AppInfoBase
|
|||||||
} else {
|
} else {
|
||||||
mMetricsFeatureProvider.action(
|
mMetricsFeatureProvider.action(
|
||||||
getActivity(),
|
getActivity(),
|
||||||
mAppEntry.info.enabled
|
MetricsEvent.ACTION_SETTINGS_ENABLE_APP);
|
||||||
? MetricsEvent.ACTION_SETTINGS_DISABLE_APP
|
|
||||||
: MetricsEvent.ACTION_SETTINGS_ENABLE_APP);
|
|
||||||
new DisableChanger(this, mAppEntry.info,
|
new DisableChanger(this, mAppEntry.info,
|
||||||
PackageManager.COMPONENT_ENABLED_STATE_DEFAULT)
|
PackageManager.COMPONENT_ENABLED_STATE_ENABLED)
|
||||||
.execute((Object) null);
|
.execute((Object) null);
|
||||||
}
|
}
|
||||||
} else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) == 0) {
|
} else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user