Enable static RROs by default

Static RROs should be always enabled.
This is a missing part from ag/1949458.
The design details are in go/treble-static-rro.

Test: building succeeded and tested with static RROs.
Bug: 35742444
Change-Id: Ia9851f91c97cdde2436a29a161194eeb56ea47d5
This commit is contained in:
Jaekyun Seok
2017-03-29 11:02:15 +09:00
parent 79a973f643
commit 84d7f1ecfb

View File

@@ -102,7 +102,8 @@ final class OverlayManagerServiceImpl {
if (oi == null) {
// This overlay does not exist in our settings.
if (mDefaultOverlays.contains(overlayPackage.packageName)) {
if (overlayPackage.isStaticOverlay ||
mDefaultOverlays.contains(overlayPackage.packageName)) {
// Enable this overlay by default.
mSettings.setEnabled(overlayPackage.packageName, newUserId, true);
}