Hide "accept migration" button when migration is not offered
This commit is contained in:
parent
5b3e72db54
commit
aca34155b9
@ -18,6 +18,7 @@ import eu.kanade.tachiyomi.ui.manga.MangaController
|
||||
import eu.kanade.tachiyomi.ui.manga.info.MangaInfoController
|
||||
import eu.kanade.tachiyomi.util.gone
|
||||
import eu.kanade.tachiyomi.util.inflate
|
||||
import eu.kanade.tachiyomi.util.visible
|
||||
import exh.MERGED_SOURCE_ID
|
||||
import exh.debug.DebugFunctions.sourceManager
|
||||
import exh.util.await
|
||||
@ -99,6 +100,8 @@ class MigrationProcedureAdapter(val controller: MigrationProcedureController,
|
||||
eh_manga_card_to.setOnClickListener {
|
||||
controller.router.pushController(MangaController(manga, true).withFadeTransaction())
|
||||
}
|
||||
accept_migration.isEnabled = true
|
||||
accept_migration.alpha = 1.0f
|
||||
} else {
|
||||
eh_manga_card_to.search_progress.gone()
|
||||
eh_manga_card_to.search_status.text = "Found no manga"
|
||||
|
@ -68,14 +68,16 @@
|
||||
android:id="@+id/accept_migration"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:alpha="0.5"
|
||||
android:drawableStart="@drawable/eh_ic_check_white_24dp"
|
||||
android:drawableLeft="@drawable/eh_ic_check_white_24dp"
|
||||
android:drawablePadding="6dp"
|
||||
android:enabled="false"
|
||||
android:text="Migrate manga"
|
||||
android:textColor="#ffffff"
|
||||
app:backgroundTint="#00C853"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/skip_migration"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintStart_toEndOf="@+id/skip_migration"
|
||||
app:backgroundTint="#00C853"
|
||||
android:drawableLeft="@drawable/eh_ic_check_white_24dp" />
|
||||
app:layout_constraintStart_toEndOf="@+id/skip_migration" />
|
||||
</android.support.constraint.ConstraintLayout>
|
Loading…
x
Reference in New Issue
Block a user