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

Commit 5c90a9c2 authored by Jason Hsu's avatar Jason Hsu Committed by Android (Google) Code Review
Browse files

Merge "Align the "Open activity" UI style with usual accessibility service...

Merge "Align the "Open activity" UI style with usual accessibility service "Use service"" into sc-v2-dev
parents d355d7f1 a8442468
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2021 The Android Open Source Project

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:minHeight="@dimen/settingslib_min_switch_bar_height"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    android:layout_margin="@dimen/settingslib_switchbar_margin"
    android:paddingStart="@dimen/settingslib_switchbar_padding_left"
    android:paddingEnd="@dimen/settingslib_switchbar_padding_right"
    android:background="@drawable/settingslib_switch_bar_bg_on">

    <TextView
        android:id="@android:id/title"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_marginEnd="@dimen/settingslib_switch_title_margin"
        android:layout_marginVertical="@dimen/settingslib_switch_title_margin"
        android:layout_gravity="center_vertical"
        android:ellipsize="end"
        android:textAppearance="?android:attr/textAppearanceListItem"
        style="@style/MainSwitchText.Settingslib" />
</LinearLayout>
+1 −0
Original line number Diff line number Diff line
@@ -150,6 +150,7 @@ public class LaunchAccessibilityActivityPreferenceFragment extends ToggleFeature

    private void initLaunchPreference() {
        final Preference launchPreference = new Preference(getPrefContext());
        launchPreference.setLayoutResource(R.layout.accessibility_launch_activity_preference);
        launchPreference.setKey(KEY_LAUNCH_PREFERENCE);

        final AccessibilityShortcutInfo info = getAccessibilityShortcutInfo();