* Ability to rename top sites, closes #9548 * Highlight the "Remove" top site action as destructive With more menu items in the top site contextual menu, it makes sense to differentiate * Added test for the top site renaming action * Fixed lint check (wildcard imports, blank spaces) * Applied suggestions from code review * Apply suggestions from code review Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com> * Implemented dialog click listener with manual dismiss/cancel Co-authored-by: Lorenzo Stanco <lorenzo.stanco@gmail.com>upstream-sync
parent
20b3c765fc
commit
66210469c0
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name_header"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="26dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:text="@string/top_sites_rename_dialog_title"
|
||||
android:textAllCaps="true"
|
||||
android:textAppearance="@style/Body16TextStyle"
|
||||
android:textColor="?secondaryText" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/top_site_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:autofillHints="false"
|
||||
android:backgroundTint="?neutral"
|
||||
android:hint="@string/top_site_name_hint"
|
||||
android:inputType="textCapSentences"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="viewStart" />
|
||||
</LinearLayout>
|
Loading…
Reference in New Issue