Skip to content

Commit

Permalink
Hotfix: Issue when auto-logging in with the app
Browse files Browse the repository at this point in the history
  • Loading branch information
MrApplejuice committed Feb 17, 2023
1 parent 6d5bc87 commit 3e1acfe
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ public void afterTextChanged(Editable editable) {
return;
}

View toolbar = getMainActivity().findViewById(R.id.app_toolbar);
MainActivity mainAct = getMainActivity();
if (mainAct == null) {
return; // Hotfix - can happen when the app restarts from resume-state if the fragment deactivates.
}
View toolbar = mainAct.findViewById(R.id.app_toolbar);
toolbar.getGlobalVisibleRect(r);
TutorialAccess tutorialAccess = getMainActivity().getTutorialAccess();
tutorialAccess.tutorialMessage(
Expand Down

0 comments on commit 3e1acfe

Please sign in to comment.