1
0
Fork 0

For #4341 use camelCase for views referenced from code

master
Nikit Bhandari 2019-08-03 13:44:35 +05:30 committed by Emily Kager
parent 1cb9f88787
commit 671727c3e8
27 changed files with 86 additions and 86 deletions

View File

@ -48,7 +48,7 @@ class CreateCollectionFragment : DialogFragment() {
} }
collectionCreationComponent = CollectionCreationComponent( collectionCreationComponent = CollectionCreationComponent(
view.create_collection_wrapper, view.createCollectionWrapper,
ActionBusFactory.get(this), ActionBusFactory.get(this),
FenixViewModelProvider.create( FenixViewModelProvider.create(
this, this,

View File

@ -38,11 +38,11 @@ class CrashReporterFragment : Fragment() {
val selectedSession = requireComponents.core.sessionManager.selectedSession val selectedSession = requireComponents.core.sessionManager.selectedSession
restore_tab_button.setOnClickListener { restoreTabButton.setOnClickListener {
selectedSession?.let { session -> closeFragment(true, session, crash) } selectedSession?.let { session -> closeFragment(true, session, crash) }
} }
close_tab_button.setOnClickListener { closeTabButton.setOnClickListener {
selectedSession?.let { session -> closeFragment(false, session, crash) } selectedSession?.let { session -> closeFragment(false, session, crash) }
} }
} }
@ -67,7 +67,7 @@ class CrashReporterFragment : Fragment() {
private fun submitReportIfNecessary(crash: Crash) { private fun submitReportIfNecessary(crash: Crash) {
var didSubmitCrashReport = false var didSubmitCrashReport = false
if (Settings.getInstance(context!!).isCrashReportingEnabled && send_crash_checkbox.isChecked) { if (Settings.getInstance(context!!).isCrashReportingEnabled && sendCrashCheckbox.isChecked) {
requireComponents.analytics.crashReporter.submitReport(crash) requireComponents.analytics.crashReporter.submitReport(crash)
didSubmitCrashReport = true didSubmitCrashReport = true
} }

View File

@ -49,7 +49,7 @@ class ExceptionsFragment : Fragment() {
} }
exceptionsInteractor = exceptionsInteractor =
ExceptionsInteractor(::openLearnMore, ::deleteOneItem, ::deleteAllItems) ExceptionsInteractor(::openLearnMore, ::deleteOneItem, ::deleteAllItems)
exceptionsView = ExceptionsView(view.exceptions_layout, exceptionsInteractor) exceptionsView = ExceptionsView(view.exceptionsLayout, exceptionsInteractor)
return view return view
} }

View File

@ -90,8 +90,8 @@ class BookmarkFragment : LibraryPageFragment<BookmarkNode>(), BackHandler, Accou
::deleteMulti ::deleteMulti
) )
bookmarkView = BookmarkView(view.bookmark_layout, bookmarkInteractor) bookmarkView = BookmarkView(view.bookmarkLayout, bookmarkInteractor)
signInView = SignInView(view.bookmark_layout, bookmarkInteractor) signInView = SignInView(view.bookmarkLayout, bookmarkInteractor)
return view return view
} }

View File

@ -53,8 +53,8 @@ class AddBookmarkFolderFragment : Fragment() {
sharedViewModel.selectedFolder = sharedViewModel.selectedFolder sharedViewModel.selectedFolder = sharedViewModel.selectedFolder
?: requireComponents.core.bookmarksStorage.getTree(BookmarkRoot.Mobile.id) ?: requireComponents.core.bookmarksStorage.getTree(BookmarkRoot.Mobile.id)
launch(Main) { launch(Main) {
bookmark_add_folder_parent_selector.text = sharedViewModel.selectedFolder!!.title bookmarkAddFolderParentSelector.text = sharedViewModel.selectedFolder!!.title
bookmark_add_folder_parent_selector.setOnClickListener { bookmarkAddFolderParentSelector.setOnClickListener {
nav( nav(
R.id.bookmarkAddFolderFragment, R.id.bookmarkAddFolderFragment,
AddBookmarkFolderFragmentDirections AddBookmarkFolderFragmentDirections
@ -77,14 +77,14 @@ class AddBookmarkFolderFragment : Fragment() {
override fun onOptionsItemSelected(item: MenuItem): Boolean { override fun onOptionsItemSelected(item: MenuItem): Boolean {
return when (item.itemId) { return when (item.itemId) {
R.id.confirm_add_folder_button -> { R.id.confirm_add_folder_button -> {
if (bookmark_add_folder_title_edit.text.isNullOrBlank()) { if (bookmarkAddFolderTitleEdit.text.isNullOrBlank()) {
bookmark_add_folder_title_edit.error = bookmarkAddFolderTitleEdit.error =
getString(R.string.bookmark_empty_title_error) getString(R.string.bookmark_empty_title_error)
return true return true
} }
lifecycleScope.launch(IO) { lifecycleScope.launch(IO) {
val newGuid = requireComponents.core.bookmarksStorage.addFolder( val newGuid = requireComponents.core.bookmarksStorage.addFolder(
sharedViewModel.selectedFolder!!.guid, bookmark_add_folder_title_edit.text.toString(), null sharedViewModel.selectedFolder!!.guid, bookmarkAddFolderTitleEdit.text.toString(), null
) )
sharedViewModel.selectedFolder = requireComponents.core.bookmarksStorage.getTree(newGuid) sharedViewModel.selectedFolder = requireComponents.core.bookmarksStorage.getTree(newGuid)
requireComponents.analytics.metrics.track(Event.AddBookmarkFolder) requireComponents.analytics.metrics.track(Event.AddBookmarkFolder)

View File

@ -84,8 +84,8 @@ class EditBookmarkFragment : Fragment() {
when (bookmarkNode?.type) { when (bookmarkNode?.type) {
BookmarkNodeType.FOLDER -> { BookmarkNodeType.FOLDER -> {
activity?.title = getString(R.string.edit_bookmark_folder_fragment_title) activity?.title = getString(R.string.edit_bookmark_folder_fragment_title)
bookmark_url_edit.visibility = View.GONE bookmarkUrlEdit.visibility = View.GONE
bookmark_url_label.visibility = View.GONE bookmarkUrlLabel.visibility = View.GONE
} }
BookmarkNodeType.ITEM -> { BookmarkNodeType.ITEM -> {
activity?.title = getString(R.string.edit_bookmark_fragment_title) activity?.title = getString(R.string.edit_bookmark_fragment_title)
@ -94,8 +94,8 @@ class EditBookmarkFragment : Fragment() {
} }
if (bookmarkNode != null) { if (bookmarkNode != null) {
bookmark_name_edit.setText(bookmarkNode!!.title) bookmarkNameEdit.setText(bookmarkNode!!.title)
bookmark_url_edit.setText(bookmarkNode!!.url) bookmarkUrlEdit.setText(bookmarkNode!!.url)
if (sharedViewModel.selectedFolder != null && bookmarkNode?.title != null) { if (sharedViewModel.selectedFolder != null && bookmarkNode?.title != null) {
val bookmarkPair = Pair(bookmarkNode?.title, bookmarkNode?.url) val bookmarkPair = Pair(bookmarkNode?.title, bookmarkNode?.url)
@ -106,8 +106,8 @@ class EditBookmarkFragment : Fragment() {
bookmarkParent?.let { node -> bookmarkParent?.let { node ->
launch(Main) { launch(Main) {
bookmark_folder_selector.text = node.title bookmarkFolderSelector.text = node.title
bookmark_folder_selector.setOnClickListener { bookmarkFolderSelector.setOnClickListener {
sharedViewModel.selectedFolder = null sharedViewModel.selectedFolder = null
nav( nav(
R.id.bookmarkEditFragment, R.id.bookmarkEditFragment,
@ -124,14 +124,14 @@ class EditBookmarkFragment : Fragment() {
override fun onPause() { override fun onPause() {
super.onPause() super.onPause()
bookmark_name_edit.hideKeyboard() bookmarkNameEdit.hideKeyboard()
bookmark_url_edit.hideKeyboard() bookmarkUrlEdit.hideKeyboard()
} }
private fun updateBookmarkFromObservableInput() { private fun updateBookmarkFromObservableInput() {
Observable.combineLatest( Observable.combineLatest(
bookmark_name_edit.textChanges().skipInitialValue(), bookmarkNameEdit.textChanges().skipInitialValue(),
bookmark_url_edit.textChanges().skipInitialValue(), bookmarkUrlEdit.textChanges().skipInitialValue(),
BiFunction { name: CharSequence, url: CharSequence -> BiFunction { name: CharSequence, url: CharSequence ->
Pair(name.toString(), url.toString()) Pair(name.toString(), url.toString())
}) })
@ -208,7 +208,7 @@ class EditBookmarkFragment : Fragment() {
} }
} catch (e: UrlParseFailed) { } catch (e: UrlParseFailed) {
launch(Main) { launch(Main) {
bookmark_url_edit.error = getString(R.string.bookmark_invalid_url_error) bookmarkUrlEdit.error = getString(R.string.bookmark_invalid_url_error)
} }
} }
} }

View File

@ -60,7 +60,7 @@ class SelectBookmarkFolderFragment : Fragment(), AccountObserver {
findNavController(), findNavController(),
sharedViewModel sharedViewModel
) )
signInView = SignInView(view.select_bookmark_layout, bookmarkInteractor) signInView = SignInView(view.selectBookmarkLayout, bookmarkInteractor)
return view return view
} }
@ -88,7 +88,7 @@ class SelectBookmarkFolderFragment : Fragment(), AccountObserver {
} }
activity?.title = bookmarkNode?.title ?: getString(R.string.library_bookmarks) activity?.title = bookmarkNode?.title ?: getString(R.string.library_bookmarks)
val adapter = SelectBookmarkFolderAdapter(sharedViewModel) val adapter = SelectBookmarkFolderAdapter(sharedViewModel)
recylerView_bookmark_folders.adapter = adapter recylerViewBookmarkFolders.adapter = adapter
adapter.updateData(bookmarkNode) adapter.updateData(bookmarkNode)
} }
} }

View File

@ -65,7 +65,7 @@ class HistoryFragment : LibraryPageFragment<HistoryItem>(), BackHandler {
::invalidateOptionsMenu, ::invalidateOptionsMenu,
::deleteHistoryItems ::deleteHistoryItems
) )
historyView = HistoryView(view.history_layout, historyInteractor) historyView = HistoryView(view.historyLayout, historyInteractor)
return view return view
} }

View File

@ -108,7 +108,7 @@ class SearchFragment : Fragment(), BackHandler {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState) super.onViewCreated(view, savedInstanceState)
search_scan_button.visibility = if (context?.hasCamera() == true) View.VISIBLE else View.GONE searchScanButton.visibility = if (context?.hasCamera() == true) View.VISIBLE else View.GONE
layoutComponents(view.search_layout) layoutComponents(view.search_layout)
qrFeature.set( qrFeature.set(
@ -119,7 +119,7 @@ class SearchFragment : Fragment(), BackHandler {
requestPermissions(permissions, REQUEST_CODE_CAMERA_PERMISSIONS) requestPermissions(permissions, REQUEST_CODE_CAMERA_PERMISSIONS)
}, },
onScanResult = { result -> onScanResult = { result ->
search_scan_button.isChecked = false searchScanButton.isChecked = false
activity?.let { activity?.let {
AlertDialog.Builder(it).apply { AlertDialog.Builder(it).apply {
val spannable = resources.getSpannable( val spannable = resources.getSpannable(
@ -153,7 +153,7 @@ class SearchFragment : Fragment(), BackHandler {
view = view view = view
) )
view.search_scan_button.setOnClickListener { view.searchScanButton.setOnClickListener {
toolbarView.view.clearFocus() toolbarView.view.clearFocus()
requireComponents.analytics.metrics.track(Event.QRScannerOpened) requireComponents.analytics.metrics.track(Event.QRScannerOpened)
qrFeature.get()?.scan(R.id.container) qrFeature.get()?.scan(R.id.container)
@ -161,7 +161,7 @@ class SearchFragment : Fragment(), BackHandler {
view.toolbar_wrapper.clipToOutline = false view.toolbar_wrapper.clipToOutline = false
search_shortcuts_button.setOnClickListener { searchShortcutsButton.setOnClickListener {
val isOpen = searchStore.state.showShortcutEnginePicker val isOpen = searchStore.state.showShortcutEnginePicker
searchStore.dispatch(SearchAction.ShowSearchShortcutEnginePicker(!isOpen)) searchStore.dispatch(SearchAction.ShowSearchShortcutEnginePicker(!isOpen))
@ -204,7 +204,7 @@ class SearchFragment : Fragment(), BackHandler {
override fun onBackPressed(): Boolean { override fun onBackPressed(): Boolean {
return when { return when {
qrFeature.onBackPressed() -> { qrFeature.onBackPressed() -> {
view?.search_scan_button?.isChecked = false view?.searchScanButton?.isChecked = false
toolbarView.view.requestFocus() toolbarView.view.requestFocus()
true true
} }
@ -217,21 +217,21 @@ class SearchFragment : Fragment(), BackHandler {
val draw = BitmapDrawable(resources, searchIcon) val draw = BitmapDrawable(resources, searchIcon)
val iconSize = resources.getDimension(R.dimen.preference_icon_drawable_size).toInt() val iconSize = resources.getDimension(R.dimen.preference_icon_drawable_size).toInt()
draw.setBounds(0, 0, iconSize, iconSize) draw.setBounds(0, 0, iconSize, iconSize)
search_engine_icon?.backgroundDrawable = draw searchEngineIcon?.backgroundDrawable = draw
} }
private fun updateSearchWithLabel(searchState: SearchState) { private fun updateSearchWithLabel(searchState: SearchState) {
search_with_shortcuts.visibility = if (searchState.showShortcutEnginePicker) View.VISIBLE else View.GONE searchWithShortcuts.visibility = if (searchState.showShortcutEnginePicker) View.VISIBLE else View.GONE
} }
private fun updateSearchShortuctsIcon(searchState: SearchState) { private fun updateSearchShortuctsIcon(searchState: SearchState) {
with(requireContext()) { with(requireContext()) {
val showShortcuts = searchState.showShortcutEnginePicker val showShortcuts = searchState.showShortcutEnginePicker
search_shortcuts_button?.isChecked = showShortcuts searchShortcutsButton?.isChecked = showShortcuts
val color = if (showShortcuts) R.attr.contrastText else R.attr.primaryText val color = if (showShortcuts) R.attr.contrastText else R.attr.primaryText
search_shortcuts_button.compoundDrawables[0]?.setTint(getColorFromAttr(color)) searchShortcutsButton.compoundDrawables[0]?.setTint(getColorFromAttr(color))
} }
} }
@ -244,7 +244,7 @@ class SearchFragment : Fragment(), BackHandler {
if (context.isPermissionGranted(Manifest.permission.CAMERA)) { if (context.isPermissionGranted(Manifest.permission.CAMERA)) {
permissionDidUpdate = true permissionDidUpdate = true
} else { } else {
view?.search_scan_button?.isChecked = false view?.searchScanButton?.isChecked = false
} }
} }
} }

View File

@ -36,7 +36,7 @@ internal fun SearchFragment.setInExperimentConstraints(layout: ConstraintLayout)
toolbar_wrapper { toolbar_wrapper {
connect( connect(
TOP to TOP of UNSET, TOP to TOP of UNSET,
BOTTOM to TOP of pill_wrapper BOTTOM to TOP of pillWrapper
) )
} }
awesomeBar { awesomeBar {
@ -46,7 +46,7 @@ internal fun SearchFragment.setInExperimentConstraints(layout: ConstraintLayout)
) )
} }
(awesomeBar.layoutManager as? LinearLayoutManager)?.reverseLayout = true (awesomeBar.layoutManager as? LinearLayoutManager)?.reverseLayout = true
pill_wrapper { pillWrapper {
connect( connect(
BOTTOM to BOTTOM of PARENT_ID BOTTOM to BOTTOM of PARENT_ID
) )
@ -63,7 +63,7 @@ internal fun SearchFragment.setOutOfExperimentConstraints(layout: ConstraintLayo
BOTTOM to TOP of UNSET BOTTOM to TOP of UNSET
) )
} }
search_with_shortcuts { searchWithShortcuts {
connect( connect(
TOP to BOTTOM of toolbar_wrapper TOP to BOTTOM of toolbar_wrapper
) )
@ -71,12 +71,12 @@ internal fun SearchFragment.setOutOfExperimentConstraints(layout: ConstraintLayo
awesomeBar { awesomeBar {
connect( connect(
TOP to TOP of UNSET, TOP to TOP of UNSET,
TOP to BOTTOM of search_with_shortcuts, TOP to BOTTOM of searchWithShortcuts,
BOTTOM to TOP of pill_wrapper BOTTOM to TOP of pillWrapper
) )
} }
(awesomeBar.layoutManager as? LinearLayoutManager)?.reverseLayout = false (awesomeBar.layoutManager as? LinearLayoutManager)?.reverseLayout = false
pill_wrapper { pillWrapper {
connect( connect(
BOTTOM to BOTTOM of PARENT_ID BOTTOM to BOTTOM of PARENT_ID
) )

View File

@ -33,7 +33,7 @@ class PairFragment : Fragment(), BackHandler {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState) super.onViewCreated(view, savedInstanceState)
pair_instructions.text = HtmlCompat.fromHtml(getString(R.string.pair_instructions), pairInstructions.text = HtmlCompat.fromHtml(getString(R.string.pair_instructions),
HtmlCompat.FROM_HTML_MODE_LEGACY) HtmlCompat.FROM_HTML_MODE_LEGACY)
qrFeature.set( qrFeature.set(

View File

@ -56,7 +56,7 @@ class SignOutFragment : BottomSheetDialogFragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState) super.onViewCreated(view, savedInstanceState)
view.sign_out_disconnect.setOnClickListener { view.signOutDisconnect.setOnClickListener {
requireComponents.analytics.metrics.track(Event.SyncAccountSignOut) requireComponents.analytics.metrics.track(Event.SyncAccountSignOut)
lifecycleScope.launch { lifecycleScope.launch {
accountManager.logoutAsync().await() accountManager.logoutAsync().await()
@ -67,7 +67,7 @@ class SignOutFragment : BottomSheetDialogFragment() {
} }
} }
view.sign_out_cancel.setOnClickListener { view.signOutCancel.setOnClickListener {
dismiss() dismiss()
} }
} }

View File

@ -47,9 +47,9 @@ class TurnOnSyncFragment : Fragment(), AccountObserver {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
val view = inflater.inflate(R.layout.fragment_turn_on_sync, container, false) val view = inflater.inflate(R.layout.fragment_turn_on_sync, container, false)
view.sign_in_scan_button.setOnClickListener(getClickListenerForPairing()) view.signInScanButton.setOnClickListener(getClickListenerForPairing())
view.sign_in_email_button.setOnClickListener(getClickListenerForSignIn()) view.signInEmailButton.setOnClickListener(getClickListenerForSignIn())
view.sign_in_instructions.text = HtmlCompat.fromHtml( view.signInInstructions.text = HtmlCompat.fromHtml(
getString(R.string.sign_in_instructions), getString(R.string.sign_in_instructions),
HtmlCompat.FROM_HTML_MODE_LEGACY HtmlCompat.FROM_HTML_MODE_LEGACY
) )

View File

@ -54,7 +54,7 @@ class ShareFragment : AppCompatDialogFragment() {
tabs = args.tabs ?: arrayOf(ShareTab(args.url!!, args.title ?: "")) tabs = args.tabs ?: arrayOf(ShareTab(args.url!!, args.title ?: ""))
component = ShareComponent( component = ShareComponent(
view.share_wrapper, view.shareWrapper,
ActionBusFactory.get(this), ActionBusFactory.get(this),
FenixViewModelProvider.create( FenixViewModelProvider.create(
this, this,

View File

@ -18,10 +18,10 @@
android:textAllCaps="true" android:textAllCaps="true"
android:textColor="?primaryText" android:textColor="?primaryText"
android:textSize="12sp" android:textSize="12sp"
android:labelFor="@id/bookmark_add_folder_title_edit" /> android:labelFor="@id/bookmarkAddFolderTitleEdit" />
<org.mozilla.fenix.utils.ClearableEditText <org.mozilla.fenix.utils.ClearableEditText
android:id="@+id/bookmark_add_folder_title_edit" android:id="@+id/bookmarkAddFolderTitleEdit"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
@ -41,7 +41,7 @@
android:textSize="12sp" /> android:textSize="12sp" />
<TextView <TextView
android:id="@+id/bookmark_add_folder_parent_selector" android:id="@+id/bookmarkAddFolderParentSelector"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"

View File

@ -9,7 +9,7 @@
tools:context="org.mozilla.fenix.library.bookmarks.BookmarkFragment"> tools:context="org.mozilla.fenix.library.bookmarks.BookmarkFragment">
<LinearLayout <LinearLayout
android:id="@+id/bookmark_layout" android:id="@+id/bookmarkLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" /> android:orientation="vertical" />

View File

@ -38,7 +38,7 @@
tools:text="@string/tab_crash_title_2"/> tools:text="@string/tab_crash_title_2"/>
<CheckBox <CheckBox
android:id="@+id/send_crash_checkbox" android:id="@+id/sendCrashCheckbox"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="32dp" android:layout_height="32dp"
android:layout_marginBottom="20dp" android:layout_marginBottom="20dp"
@ -47,13 +47,13 @@
android:text="@string/tab_crash_send_report" android:text="@string/tab_crash_send_report"
android:textColor="?primaryText" android:textColor="?primaryText"
android:textSize="15sp" android:textSize="15sp"
app:layout_constraintBottom_toTopOf="@id/close_tab_button" app:layout_constraintBottom_toTopOf="@id/closeTabButton"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintWidth_percent="0.9"/> app:layout_constraintWidth_percent="0.9"/>
<Button <Button
android:id="@+id/restore_tab_button" android:id="@+id/restoreTabButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="36dp" android:layout_height="36dp"
android:layout_marginStart="@dimen/crash_reporter_close_tab_button_horizontal_margin" android:layout_marginStart="@dimen/crash_reporter_close_tab_button_horizontal_margin"
@ -72,7 +72,7 @@
app:layout_constraintWidth_percent="0.4" /> app:layout_constraintWidth_percent="0.4" />
<Button <Button
android:id="@+id/close_tab_button" android:id="@+id/closeTabButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="36dp" android:layout_height="36dp"
android:layout_marginStart="@dimen/crash_reporter_close_tab_button_horizontal_margin" android:layout_marginStart="@dimen/crash_reporter_close_tab_button_horizontal_margin"

View File

@ -5,7 +5,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/create_collection_wrapper" android:id="@+id/createCollectionWrapper"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/scrim_background" android:background="@drawable/scrim_background"

View File

@ -18,10 +18,10 @@
android:textColor="?primaryText" android:textColor="?primaryText"
android:textSize="12sp" android:textSize="12sp"
android:textAllCaps="true" android:textAllCaps="true"
android:labelFor="@id/bookmark_name_edit" /> android:labelFor="@id/bookmarkNameEdit" />
<org.mozilla.fenix.utils.ClearableEditText <org.mozilla.fenix.utils.ClearableEditText
android:id="@+id/bookmark_name_edit" android:id="@+id/bookmarkNameEdit"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
@ -35,7 +35,7 @@
tools:text="Internet for people, not profit -- Mozilla" /> tools:text="Internet for people, not profit -- Mozilla" />
<TextView <TextView
android:id="@+id/bookmark_url_label" android:id="@+id/bookmarkUrlLabel"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
@ -43,10 +43,10 @@
android:textColor="?primaryText" android:textColor="?primaryText"
android:textSize="12sp" android:textSize="12sp"
android:textAllCaps="true" android:textAllCaps="true"
android:labelFor="@id/bookmark_url_edit" /> android:labelFor="@id/bookmarkUrlEdit" />
<org.mozilla.fenix.utils.ClearableEditText <org.mozilla.fenix.utils.ClearableEditText
android:id="@+id/bookmark_url_edit" android:id="@+id/bookmarkUrlEdit"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
@ -68,10 +68,10 @@
android:textColor="?primaryText" android:textColor="?primaryText"
android:textSize="12sp" android:textSize="12sp"
android:textAllCaps="true" android:textAllCaps="true"
android:labelFor="@id/bookmark_folder_selector" /> android:labelFor="@id/bookmarkFolderSelector" />
<TextView <TextView
android:id="@+id/bookmark_folder_selector" android:id="@+id/bookmarkFolderSelector"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"

View File

@ -4,7 +4,7 @@
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/exceptions_layout" android:id="@+id/exceptionsLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"

View File

@ -4,7 +4,7 @@
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<LinearLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/history_layout" android:id="@+id/historyLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"/> android:orientation="vertical"/>

View File

@ -11,7 +11,7 @@
android:layout_height="match_parent" /> android:layout_height="match_parent" />
<TextView <TextView
android:id="@+id/pair_instructions" android:id="@+id/pairInstructions"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"

View File

@ -24,7 +24,7 @@
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<ImageView <ImageView
android:id="@+id/search_engine_icon" android:id="@+id/searchEngineIcon"
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:layout_margin="12dp" android:layout_margin="12dp"
@ -38,13 +38,13 @@
android:layout_height="0dp" android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/search_engine_icon" app:layout_constraintStart_toEndOf="@id/searchEngineIcon"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
<TextView <TextView
android:id="@+id/search_with_shortcuts" android:id="@+id/searchWithShortcuts"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="15dp" android:layout_marginTop="15dp"
@ -64,12 +64,12 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"
android:background="?neutralFaded" android:background="?neutralFaded"
app:layout_constraintBottom_toTopOf="@id/pill_wrapper" app:layout_constraintBottom_toTopOf="@id/pillWrapper"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" /> app:layout_constraintStart_toStartOf="parent" />
<LinearLayout <LinearLayout
android:id="@+id/pill_wrapper" android:id="@+id/pillWrapper"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="40dp" android:layout_height="40dp"
android:background="?foundation" android:background="?foundation"
@ -83,7 +83,7 @@
app:layout_constraintStart_toStartOf="parent"> app:layout_constraintStart_toStartOf="parent">
<ToggleButton <ToggleButton
android:id="@+id/search_scan_button" android:id="@+id/searchScanButton"
style="@style/search_pill" style="@style/search_pill"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:drawableStart="@drawable/ic_qr" android:drawableStart="@drawable/ic_qr"
@ -91,7 +91,7 @@
android:textOn="@string/search_scan_button" /> android:textOn="@string/search_scan_button" />
<ToggleButton <ToggleButton
android:id="@+id/search_shortcuts_button" android:id="@+id/searchShortcutsButton"
style="@style/search_pill" style="@style/search_pill"
android:drawableStart="@drawable/ic_search" android:drawableStart="@drawable/ic_search"
android:textOff="@string/search_shortcuts_button" android:textOff="@string/search_shortcuts_button"

View File

@ -5,13 +5,13 @@
<LinearLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/select_bookmark_layout" android:id="@+id/selectBookmarkLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/recylerView_bookmark_folders" android:id="@+id/recylerViewBookmarkFolders"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"

View File

@ -5,7 +5,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/share_wrapper" android:id="@+id/shareWrapper"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@drawable/scrim_background" android:background="@drawable/scrim_background"

View File

@ -22,15 +22,15 @@
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<Button <Button
android:id="@+id/sign_out_cancel" android:id="@+id/signOutCancel"
style="@style/SitePermissionCancelButton" style="@style/SitePermissionCancelButton"
android:text="@string/sign_out_cancel" android:text="@string/sign_out_cancel"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/sign_out_disconnect" app:layout_constraintEnd_toStartOf="@+id/signOutDisconnect"
app:layout_constraintTop_toBottomOf="@+id/sign_out_message" /> app:layout_constraintTop_toBottomOf="@+id/sign_out_message" />
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/sign_out_disconnect" android:id="@+id/signOutDisconnect"
style="@style/SitePermissionPrimaryButton" style="@style/SitePermissionPrimaryButton"
android:text="@string/sign_out_disconnect" android:text="@string/sign_out_disconnect"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"

View File

@ -40,7 +40,7 @@
app:srcCompat="@drawable/ic_scan" /> app:srcCompat="@drawable/ic_scan" />
<TextView <TextView
android:id="@+id/sign_in_instructions" android:id="@+id/signInInstructions"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
@ -53,7 +53,7 @@
app:layout_constraintTop_toBottomOf="@+id/sign_in_image" /> app:layout_constraintTop_toBottomOf="@+id/sign_in_image" />
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/sign_in_scan_button" android:id="@+id/signInScanButton"
style="@style/Widget.MaterialComponents.Button.TextButton" style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -70,10 +70,10 @@
app:iconTint="?contrastText" app:iconTint="?contrastText"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/sign_in_instructions" /> app:layout_constraintTop_toBottomOf="@id/signInInstructions" />
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/sign_in_email_button" android:id="@+id/signInEmailButton"
style="@style/ThemeIndependentMaterialGreyButton" style="@style/ThemeIndependentMaterialGreyButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -81,7 +81,7 @@
android:text="@string/sign_in_with_email" android:text="@string/sign_in_with_email"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/sign_in_scan_button" /> app:layout_constraintTop_toBottomOf="@id/signInScanButton" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>