LiveDisplayService: Notify SystemUI after initialization finished
Change-Id: Id01eeee3bdfc599bdc20a5779db3d002fa4bc1c9
This commit is contained in:
committed by
Michael Bestas
parent
62885acaca
commit
63a590625c
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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" />
|
||||
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user