after a deleted activity was undeleted in the activity manager, it is not shown in the recycler to select. Only after restart of the app the list is refreshed.
As the now again valid (= not deleted) activity is not in the list of activities in ActivityHelper, the app will crash with
at de.rampro.activitydiary.ui.generic.EditActivity$QHandler$3.onClick(EditActivity.java:202)
at android.view.View.performClick(View.java:6597)
at android.view.View.performClickInternal(View.java:6574)
at android.view.View.access$3100(View.java:778)
at android.view.View$PerformClick.run(View.java:25885)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at androidx.test.espresso.base.Interrogator.a(Interrogator.java:19)
at androidx.test.espresso.base.UiControllerImpl.a(UiControllerImpl.java:164)
at androidx.test.espresso.base.UiControllerImpl.a(UiControllerImpl.java:156)
at androidx.test.espresso.base.UiControllerImpl.a(UiControllerImpl.java:34)
at androidx.test.espresso.action.MotionEvents.a(MotionEvents.java:75)
at androidx.test.espresso.action.MotionEvents.a(MotionEvents.java:50)
at androidx.test.espresso.action.Tap.c(Tap.java:8)
at androidx.test.espresso.action.Tap.a(Tap.java:18)
at androidx.test.espresso.action.Tap$1.b(Tap.java:3)
at androidx.test.espresso.action.GeneralClickAction.perform(GeneralClickAction.java:22)
at androidx.test.espresso.ViewInteraction$SingleExecutionViewAction.perform(ViewInteraction.java:9)
at androidx.test.espresso.ViewInteraction.a(ViewInteraction.java:79)
at androidx.test.espresso.ViewInteraction.a(ViewInteraction.java:96)
at androidx.test.espresso.ViewInteraction$1.call(ViewInteraction.java:3)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
after you start to created a new activity with the same name as the hidden one and click on the "edit existing actitivity with same name".
Best would be to replace the explicit list of activities in the ActivityHelper by a cursor from the ContenProvider and a notification on change of the deleted status (during rework of #210 ?). Without the list, it cannot be outdated :-)
after a deleted activity was undeleted in the activity manager, it is not shown in the recycler to select. Only after restart of the app the list is refreshed.
As the now again valid (= not deleted) activity is not in the list of activities in ActivityHelper, the app will crash with
after you start to created a new activity with the same name as the hidden one and click on the "edit existing actitivity with same name".
Best would be to replace the explicit list of activities in the ActivityHelper by a cursor from the ContenProvider and a notification on change of the deleted status (during rework of #210 ?). Without the list, it cannot be outdated :-)