We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8f052d commit e953b6dCopy full SHA for e953b6d
1 file changed
app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt
@@ -255,7 +255,14 @@ class AppViewModel @Inject constructor(
255
viewModelScope.launch {
256
timedSheetManager.currentSheet.collect { sheetType ->
257
if (sheetType != null) {
258
- showSheet(Sheet.TimedSheet(sheetType))
+ val currentSheet = _currentSheet.value
259
+ val isHighPrioritySheetShowing = currentSheet is Sheet.Gift ||
260
+ currentSheet is Sheet.Send ||
261
+ currentSheet is Sheet.LnurlAuth ||
262
+ currentSheet is Sheet.Pin
263
+ if (!isHighPrioritySheetShowing) {
264
+ showSheet(Sheet.TimedSheet(sheetType))
265
+ }
266
} else {
267
// Clear the timed sheet when manager sets it to null
268
_currentSheet.update { current ->
0 commit comments