удалили кнопку обновления. фикс фаба в скане
This commit is contained in:
parent
5762c2e611
commit
9cf6d4c4dc
@ -71,7 +71,6 @@ class ProfileFragment : Fragment(R.layout.fragment_profile) {
|
||||
}
|
||||
|
||||
private fun initCallback() {
|
||||
binding.refresh.setOnClickListener { viewModel.clickRefresh() }
|
||||
binding.logout.setOnClickListener { viewModel.clickLogout() }
|
||||
binding.scan.setOnClickListener { viewModel.clickScan() }
|
||||
}
|
||||
|
@ -37,9 +37,7 @@ class ProfileViewModel @Inject constructor(
|
||||
updateUserInfo()
|
||||
}
|
||||
|
||||
fun clickRefresh() {
|
||||
updateUserInfo()
|
||||
}
|
||||
|
||||
|
||||
fun clickLogout() {
|
||||
viewModelScope.launch {
|
||||
|
@ -95,17 +95,6 @@
|
||||
tools:text="Something wrong. Try later" />
|
||||
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/refresh"
|
||||
style="?attr/floatingActionButtonSmallStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@string/profile_refresh_button"
|
||||
android:src="@drawable/ic_refresh"
|
||||
app:elevation="0dp"
|
||||
app:layout_constraintStart_toStartOf="@+id/position"
|
||||
app:layout_constraintTop_toBottomOf="@+id/lastEntry" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/logout"
|
||||
style="@style/Theme.UiTemplate.FAB.Gray"
|
||||
|
@ -29,6 +29,7 @@
|
||||
android:layout_margin="16dp"
|
||||
android:contentDescription="@string/close_button"
|
||||
android:src="@drawable/ic_close"
|
||||
style="@style/Theme.UiTemplate.FAB.AccentColor"
|
||||
app:elevation="0dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user