remove Snackbar

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-11-07 16:55:23 +01:00
parent fbecfaf95d
commit 05ca7f52a5
No known key found for this signature in database
GPG key ID: F7AA2A8B65B50220
3 changed files with 3 additions and 8 deletions

View file

@ -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)

View file

@ -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"

View file

@ -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>