[Login] Crop Podlasie logo. Add Feedback activity, remove help icon.

This commit is contained in:
Kuba Szczodrzyński 2020-05-16 20:59:28 +02:00
parent e02d3e571d
commit d6a796e25e
4 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,7 @@
package pl.szczodrzynski.edziennik.ui.modules.login
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
@ -20,6 +21,7 @@ import pl.szczodrzynski.edziennik.Bundle
import pl.szczodrzynski.edziennik.R
import pl.szczodrzynski.edziennik.databinding.LoginChooserFragmentBinding
import pl.szczodrzynski.edziennik.onClick
import pl.szczodrzynski.edziennik.ui.modules.feedback.FeedbackActivity
import pl.szczodrzynski.edziennik.utils.SimpleDividerItemDecoration
import kotlin.coroutines.CoroutineContext
@ -76,6 +78,10 @@ class LoginChooserFragment : Fragment(), CoroutineScope {
addItemDecoration(SimpleDividerItemDecoration(context))
}
b.helpButton.onClick {
startActivity(Intent(activity, FeedbackActivity::class.java))
}
when {
activity.loginStores.isNotEmpty() -> {
// we are navigated here from LoginSummary

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -73,6 +73,7 @@
android:layout_width="40dp"
android:layout_height="40dp"
android:background="?selectableItemBackgroundBorderless"
android:visibility="gone"
app:iiv_color="?colorOnBackground"
app:iiv_icon="cmd-help-circle-outline"
app:iiv_size="24dp"
@ -83,7 +84,8 @@
android:id="@+id/fakeLogin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Fake login" />
android:text="Fake login"
android:visibility="gone" />
<LinearLayout
android:id="@+id/errorLayout"