diff --git a/android-app/app/build.gradle b/android-app/app/build.gradle index d567cc63..3865a6d3 100644 --- a/android-app/app/build.gradle +++ b/android-app/app/build.gradle @@ -53,8 +53,8 @@ android { applicationId "arun.com.chromer" minSdkVersion 16 targetSdkVersion 28 - versionCode 54 - versionName "2.1.1" + versionCode 55 + versionName "2.1.2" multiDexEnabled true diff --git a/android-app/app/src/main/java/arun/com/chromer/home/epoxycontroller/model/TabModel.kt b/android-app/app/src/main/java/arun/com/chromer/home/epoxycontroller/model/TabModel.kt index 94be98bf..dea1fa30 100644 --- a/android-app/app/src/main/java/arun/com/chromer/home/epoxycontroller/model/TabModel.kt +++ b/android-app/app/src/main/java/arun/com/chromer/home/epoxycontroller/model/TabModel.kt @@ -5,6 +5,7 @@ import arun.com.chromer.data.website.model.Website import arun.com.chromer.tabs.TabsManager import arun.com.chromer.util.glide.GlideApp import com.airbnb.epoxy.EpoxyAttribute +import com.airbnb.epoxy.EpoxyAttribute.Option.DoNotHash import com.airbnb.epoxy.EpoxyModelClass import dev.arunkumar.android.epoxy.model.KotlinEpoxyModelWithHolder import dev.arunkumar.android.epoxy.model.KotlinHolder @@ -14,6 +15,8 @@ import kotlinx.android.synthetic.main.widget_tab_model_preview.* abstract class TabModel : KotlinEpoxyModelWithHolder() { @EpoxyAttribute lateinit var tab: TabsManager.Tab + @EpoxyAttribute(DoNotHash) + lateinit var tabsManager: TabsManager override fun bind(holder: ViewHolder) { super.bind(holder) @@ -21,6 +24,13 @@ abstract class TabModel : KotlinEpoxyModelWithHolder() { .load(tab.website ?: Website(tab.url)) .circleCrop() .into(holder.icon) + holder.containerView.setOnClickListener { + tabsManager.reOrderTabByUrl( + holder.containerView.context, + Website(tab.url), + listOf(tab.getTargetActivityName()) + ) + } } class ViewHolder : KotlinHolder() diff --git a/android-app/app/src/main/java/arun/com/chromer/home/epoxycontroller/model/TabsInfoModel.kt b/android-app/app/src/main/java/arun/com/chromer/home/epoxycontroller/model/TabsInfoModel.kt index fe6caee2..b18133c8 100644 --- a/android-app/app/src/main/java/arun/com/chromer/home/epoxycontroller/model/TabsInfoModel.kt +++ b/android-app/app/src/main/java/arun/com/chromer/home/epoxycontroller/model/TabsInfoModel.kt @@ -1,5 +1,6 @@ package arun.com.chromer.home.epoxycontroller.model +import android.view.View import androidx.recyclerview.widget.DefaultItemAnimator import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView @@ -21,8 +22,6 @@ abstract class TabsInfoModel : KotlinEpoxyModelWithHolder @@ -44,7 +43,7 @@ android:gravity="center|start" android:textColor="@color/primary_text_color" app:layout_constraintBottom_toTopOf="@+id/tabsPreviewRecyclerView" - app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintEnd_toStartOf="@id/tabsButton" app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toEndOf="@+id/tabsIcon" app:layout_constraintTop_toTopOf="parent" @@ -61,13 +60,26 @@ android:foregroundGravity="left" android:orientation="horizontal" android:visibility="gone" - app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintEnd_toStartOf="@id/tabsButton" app:layout_constraintStart_toEndOf="@+id/tabsIcon" app:layout_constraintTop_toBottomOf="@+id/tabsDescription" tools:itemCount="8" - tools:listitem="@layout/widget_tab_model_preview" /> + tools:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" + tools:listitem="@layout/widget_tab_model_preview" + tools:visibility="visible" /> + + diff --git a/android-app/app/src/main/res/values/changelog.xml b/android-app/app/src/main/res/values/changelog.xml index 93e29a7e..07ee88f1 100644 --- a/android-app/app/src/main/res/values/changelog.xml +++ b/android-app/app/src/main/res/values/changelog.xml @@ -36,6 +36,10 @@ a { You can view this again in the About screen.

+2.1.2 +
    +
  • FIX: Clear text communication error.
  • +
2.1.1
  • FIX: Open/Search with Lynket option not using selected search engine
  • diff --git a/android-app/app/src/main/res/values/styles.xml b/android-app/app/src/main/res/values/styles.xml index bb84dfb9..9c520d06 100644 --- a/android-app/app/src/main/res/values/styles.xml +++ b/android-app/app/src/main/res/values/styles.xml @@ -138,8 +138,8 @@