LiveDisplayService: Notify SystemUI after initialization finished

Change-Id: Id01eeee3bdfc599bdc20a5779db3d002fa4bc1c9
This commit is contained in:
dianlujitao
2019-08-08 16:32:50 +08:00
committed by Michael Bestas
parent 62885acaca
commit 63a590625c
3 changed files with 12 additions and 0 deletions

View File

@@ -217,6 +217,10 @@ public class LiveDisplayService extends LineageSystemService {
}
updateFeatures(ALL_CHANGED);
Intent intent = new Intent(lineageos.content.Intent.ACTION_INITIALIZE_LIVEDISPLAY);
intent.setPackage("com.android.systemui");
mContext.sendBroadcastAsUser(intent, UserHandle.SYSTEM);
}
}

View File

@@ -24,6 +24,7 @@
<protected-broadcast android:name="lineageos.intent.action.SCREEN_CAMERA_GESTURE" />
<protected-broadcast android:name="lineageos.intent.action.INITIALIZE_LINEAGE_HARDWARE" />
<protected-broadcast android:name="lineageos.intent.action.INITIALIZE_LIVEDISPLAY" />
<protected-broadcast android:name="lineageos.intent.action.ACTION_AUDIO_SESSIONS_CHANGED" />
<protected-broadcast android:name="lineageos.platform.intent.action.PROFILE_SELECTED" />

View File

@@ -113,4 +113,11 @@ public class Intent {
*/
public static final String ACTION_UPDATE_POWER_MENU =
"lineageos.intent.action.UPDATE_POWER_MENU";
/**
* Broadcast action: notify SystemUI that LiveDisplay service has finished initialization.
* @hide
*/
public static final String ACTION_INITIALIZE_LIVEDISPLAY =
"lineageos.intent.action.INITIALIZE_LIVEDISPLAY";
}