Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 904975fd authored by Nadav Bar's avatar Nadav Bar
Browse files

Integrate captions volume button with new CaptioningManager API

The code that checks for the captions service component will be removed
once the integration in the system captions side will happen.

Also cleans up the unused stream opt-out property.

Change-Id: I606f0d7a5319bbdc54b2e853fb70ea44ff9645a0
Bug: 221021539.
Bug: 136282740.
Test: Manually.
parent 038fd80c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -311,6 +311,9 @@
    <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
    <uses-permission android:name="android.permission.SUPPRESS_CLIPBOARD_ACCESS_NOTIFICATION" />

    <!-- To change system captions state -->
    <uses-permission android:name="android.permission.SET_SYSTEM_AUDIO_CAPTION" />

    <protected-broadcast android:name="com.android.settingslib.action.REGISTER_SLICE_RECEIVER" />
    <protected-broadcast android:name="com.android.settingslib.action.UNREGISTER_SLICE_RECEIVER" />
    <protected-broadcast android:name="com.android.settings.flashlight.action.FLASHLIGHT_CHANGED" />
+0 −1
Original line number Diff line number Diff line
@@ -60,7 +60,6 @@ public interface VolumeDialogController {

    boolean areCaptionsEnabled();
    void setCaptionsEnabled(boolean isEnabled);
    boolean isCaptionStreamOptedOut();

    void getCaptionsComponentState(boolean fromTooltip);

+0 −3
Original line number Diff line number Diff line
@@ -16,8 +16,5 @@
  -->
<selector xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:sysui="http://schemas.android.com/apk/res-auto">
    <item sysui:optedOut="true"
          android:color="?android:attr/colorButtonNormal"/>

    <item android:color="?android:attr/colorAccent"/>
</selector>
 No newline at end of file
+1 −2
Original line number Diff line number Diff line
@@ -73,8 +73,7 @@
                android:layout_height="match_parent"
                android:tint="@color/caption_tint_color_selector"
                android:layout_gravity="center"
                android:soundEffectsEnabled="false"
                sysui:optedOut="false"/>
                android:soundEffectsEnabled="false"/>

        </FrameLayout>

+1 −2
Original line number Diff line number Diff line
@@ -136,8 +136,7 @@
                android:layout_height="match_parent"
                android:tint="?android:attr/colorAccent"
                android:layout_gravity="center"
                android:soundEffectsEnabled="false"
                sysui:optedOut="false"/>
                android:soundEffectsEnabled="false" />
        </FrameLayout>
    </LinearLayout>

Loading