Jeff Davidson 3638973a17 Explicitly set ENABLED state when a user enables an app.
When a user explicitly clicks a button labeled "Enable" for an
application in settings, the underlying package state should reflect
this. Otherwise, it is impossible to distinguish between the default
state of an app and an app which the user has explicitly requested to
enable.

This behavior is consistent with the Play Store's.

This also fixes a metrics bug where enabling a DISABLED_UNTIL_USED app
would be erroneously treated as disabling the app.

Test: Flashed and verified enabling both DISABLED_UNTIL_USED and
DISABLED apps.
Fixes: 64223206

Change-Id: Ic18068e6047045d6f5333eaf10fcddd1e95a679d
2017-09-29 14:33:01 -07:00
2015-04-13 09:21:39 -07:00
2017-09-12 13:10:08 -07:00
2017-09-18 17:01:23 -07:00
Description
No description provided
1.5 GiB
Languages
Java 89.7%
Kotlin 10.3%