talk-android/app/src/main/java/com/nextcloud/talk
Marcel Hibbe c261e526fc
try to avoid IllegalStateException in LockedController
this commit tries to avoid the IllegalStateException in stacktrace below.

I'm not sure how this happened. It came from LockedController#unlock (--> binding?.unlockContainer?.setOnClickListener) which should only be visible when somehow it's "failed" to show the keyguard lockscreen. And somehow for this case the router backstack must have been empty.

Instead to dismiss the current controller, popToRoot() should avoid trying to pop the last remaining controller.

Exception java.lang.IllegalStateException: Trying to pop the current controller when there are none on the backstack.
  at com.bluelinelabs.conductor.Router.popCurrentController (Router.java:118)
  at com.nextcloud.talk.controllers.LockedController.checkIfWeAreSecure (LockedController.kt:147)
  at com.nextcloud.talk.controllers.LockedController.unlock (LockedController.kt:90)
  at com.nextcloud.talk.controllers.LockedController.onViewBound$lambda$0 (LockedController.kt:64)
  at com.nextcloud.talk.controllers.LockedController.$r8$lambda$sNoJ_x5yMnHnIHeqt2umoDILkpk
  at com.nextcloud.talk.controllers.LockedController$$ExternalSyntheticLambda0.onClick
  at android.view.View.performClick (View.java:7745)
  at android.view.View.performClickInternal (View.java:7722)
  at android.view.View.access$3700 (View.java:854)
  at android.view.View$PerformClick.run (View.java:29111)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:210)
  at android.os.Looper.loop (Looper.java:299)
  at android.app.ActivityThread.main (ActivityThread.java:8319)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:556)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1038)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-02-09 14:00:15 +01:00
..
activities avoid NPE in CallActivity#onDestroy 2023-02-09 14:00:14 +01:00
adapters Add raise hand icon to participant in call screen 2023-02-01 14:00:09 +01:00
api Add ability to mark a room as unread which marked the last message of the room as unread on server-side 2023-02-07 22:39:27 +01:00
application Migrate to emoji2 2022-12-07 15:59:01 +01:00
arbitrarystorage Migrate AccountRemovalWorker from requery to room 2022-07-23 14:29:41 +02:00
call Fix CI warnings 2023-02-01 16:29:50 +01:00
callbacks codacy: inefficient use of StringBuffer.toString using call StringBuffer.length instead 2022-12-29 11:37:00 +01:00
components/filebrowser Migrate to new parcelize Implementation for Kotlin 1.8, also extend chatKit MessageInput to provide access to UI elements of that component 2022-12-30 16:58:42 +01:00
controllers try to avoid IllegalStateException in LockedController 2023-02-09 14:00:15 +01:00
conversation/info Fix wrong guests access option status 2022-09-27 13:07:47 +02:00
dagger/modules add ViewModel to start/stop recording 2023-01-31 15:55:06 +01:00
data Migrate to new parcelize Implementation for Kotlin 1.8, also extend chatKit MessageInput to provide access to UI elements of that component 2022-12-30 16:58:42 +01:00
events Spotbug: Method stores return result in local before immediately returning it 2022-12-29 11:37:18 +01:00
extensions set fallback placeholder for loadImage 2023-01-18 10:18:28 +01:00
interfaces Migrate dialogs on ConversationList to Material3 2022-08-18 13:40:09 +02:00
jobs Migrate to emoji2 2022-12-07 15:59:01 +01:00
messagesearch bump compileSdkVersion to 32 2022-11-16 11:15:21 +01:00
models Add listener for "raiseHand" signaling message 2023-02-01 12:57:40 +01:00
polls use improt alias to enforce use of kotlin map function 2022-12-30 16:58:44 +01:00
presenters Spotbugs: precize allocation of a collection 2022-12-29 11:36:56 +01:00
receivers Add ability to mark a room as unread which marked the last message of the room as unread on server-side 2023-02-07 22:39:27 +01:00
remotefilebrowser Migrate to new parcelize Implementation for Kotlin 1.8, also extend chatKit MessageInput to provide access to UI elements of that component 2022-12-30 16:58:42 +01:00
repositories remove unused code 2023-01-31 15:55:09 +01:00
shareditems Localize time formatting 2022-12-15 08:33:05 +01:00
signaling Add listener for "raiseHand" signaling message 2023-02-01 12:57:40 +01:00
ui Add ability to mark a room as unread which marked the last message of the room as unread on server-side 2023-02-07 22:39:27 +01:00
upload use listOf instead Arrays.asList 2022-10-28 16:03:53 +02:00
users ensure that there is always a current user 2022-12-15 13:11:41 +01:00
utils Add ability to mark a room as unread which marked the last message of the room as unread on server-side 2023-02-07 22:39:27 +01:00
viewmodels Don't show toast when dismiss the recording stop dialog 2023-01-31 15:55:12 +01:00
webrtc Use constant for normal closure 2023-01-31 15:55:10 +01:00