mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 20:45:29 +03:00
remove Snackbar
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
fbecfaf95d
commit
05ca7f52a5
3 changed files with 3 additions and 8 deletions
|
@ -28,7 +28,6 @@ import autodagger.AutoInjector
|
|||
import com.bluelinelabs.logansquare.LoganSquare
|
||||
import com.google.android.material.card.MaterialCardView
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
import com.google.android.material.snackbar.Snackbar
|
||||
import com.nextcloud.android.common.ui.theme.utils.ColorRole
|
||||
import com.nextcloud.talk.R
|
||||
import com.nextcloud.talk.adapters.PredefinedStatusClickListener
|
||||
|
@ -301,11 +300,6 @@ class SetStatusDialogFragment :
|
|||
override fun onNext(genericOverall: GenericOverall) {
|
||||
Log.d(TAG, "$genericOverall")
|
||||
if (genericOverall.ocs?.meta?.statusCode == 200) {
|
||||
Snackbar.make(
|
||||
binding.root,
|
||||
R.string.status_reverted,
|
||||
Snackbar.LENGTH_LONG
|
||||
).show()
|
||||
binding.automaticStatus.visibility = View.GONE
|
||||
adapter.isBackupStatusAvailable = false
|
||||
predefinedStatusesList.removeAt(0)
|
||||
|
|
|
@ -55,8 +55,8 @@
|
|||
android:minWidth="48dp"
|
||||
android:minHeight="48dp"
|
||||
android:layout_gravity="center"
|
||||
android:backgroundTint="@android:color/darker_gray"
|
||||
android:textColor="@android:color/holo_red_light"
|
||||
android:backgroundTint="@color/secondary_button_background"
|
||||
android:textColor="@android:color/black"
|
||||
android:text= "@string/reset_status"
|
||||
android:textSize="14sp"
|
||||
android:padding="8dp"
|
||||
|
|
|
@ -91,5 +91,6 @@
|
|||
|
||||
<color name="icon_on_bg_default">#99000000</color>
|
||||
<color name="badge_color">#EF3B02</color>
|
||||
<color name="secondary_button_background">#DBE2E9</color>
|
||||
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue