diff --git a/app/src/main/java/org/mozilla/fenix/library/LibraryPageView.kt b/app/src/main/java/org/mozilla/fenix/library/LibraryPageView.kt index f2ed33d8f0..69a164b6fd 100644 --- a/app/src/main/java/org/mozilla/fenix/library/LibraryPageView.kt +++ b/app/src/main/java/org/mozilla/fenix/library/LibraryPageView.kt @@ -30,16 +30,16 @@ open class LibraryPageView( protected fun setUiForNormalMode(title: String?) { activity?.title = title setToolbarColors( - ContextCompat.getColor(context, R.color.white_color), - context.getColorFromAttr(R.attr.accentHighContrast) + context.getColorFromAttr(R.attr.primaryText), + context.getColorFromAttr(R.attr.foundation) ) } protected fun setUiForSelectingMode(title: String?) { activity?.title = title setToolbarColors( - context.getColorFromAttr(R.attr.primaryText), - context.getColorFromAttr(R.attr.foundation) + ContextCompat.getColor(context, R.color.white_color), + context.getColorFromAttr(R.attr.accentHighContrast) ) } diff --git a/app/src/main/java/org/mozilla/fenix/library/bookmarks/BookmarkView.kt b/app/src/main/java/org/mozilla/fenix/library/bookmarks/BookmarkView.kt index bab1214cde..0bedb0ffbd 100644 --- a/app/src/main/java/org/mozilla/fenix/library/bookmarks/BookmarkView.kt +++ b/app/src/main/java/org/mozilla/fenix/library/bookmarks/BookmarkView.kt @@ -5,8 +5,8 @@ package org.mozilla.fenix.library.bookmarks import android.view.LayoutInflater +import android.view.View import android.view.ViewGroup -import android.widget.LinearLayout import kotlinx.android.synthetic.main.component_bookmark.view.* import mozilla.appservices.places.BookmarkRoot import mozilla.components.concept.storage.BookmarkNode @@ -130,9 +130,8 @@ class BookmarkView( val interactor: BookmarkViewInteractor ) : LibraryPageView(container), BackHandler { - val view: LinearLayout = LayoutInflater.from(container.context) + val view: View = LayoutInflater.from(container.context) .inflate(R.layout.component_bookmark, container, true) - .findViewById(R.id.bookmarks_wrapper) var mode: BookmarkState.Mode = BookmarkState.Mode.Normal private set diff --git a/app/src/main/java/org/mozilla/fenix/library/history/HistoryView.kt b/app/src/main/java/org/mozilla/fenix/library/history/HistoryView.kt index d7b9c524af..ba27f66f1c 100644 --- a/app/src/main/java/org/mozilla/fenix/library/history/HistoryView.kt +++ b/app/src/main/java/org/mozilla/fenix/library/history/HistoryView.kt @@ -5,8 +5,8 @@ package org.mozilla.fenix.library.history import android.view.LayoutInflater +import android.view.View import android.view.ViewGroup -import androidx.constraintlayout.widget.ConstraintLayout import androidx.core.view.isVisible import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.SimpleItemAnimator @@ -67,9 +67,8 @@ class HistoryView( val interactor: HistoryInteractor ) : LibraryPageView(container), BackHandler { - val view: ConstraintLayout = LayoutInflater.from(container.context) + val view: View = LayoutInflater.from(container.context) .inflate(R.layout.component_history, container, true) - .findViewById(R.id.history_wrapper) private var items: List = listOf() var mode: HistoryState.Mode = HistoryState.Mode.Normal