forked from github/szkolny
[Login] Crop Podlasie logo. Add Feedback activity, remove help icon.
This commit is contained in:
parent
e02d3e571d
commit
d6a796e25e
@ -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 |
BIN
app/src/main/res/drawable/login_logo_podlasie.png
Normal file
BIN
app/src/main/res/drawable/login_logo_podlasie.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user