Skip to content

Commit

Permalink
orbotactivity tried to mess with ConnectFragment when its not added...
Browse files Browse the repository at this point in the history
bitmold committed Jan 28, 2024
1 parent 7611cc9 commit 0757af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/org/torproject/android/OrbotActivity.kt
Original file line number Diff line number Diff line change
@@ -198,7 +198,7 @@ class OrbotActivity : BaseActivity() {
if (Prefs.getConnectionPathway().equals(Prefs.PATHWAY_SMART)) {
shouldDoOffLayout = false
}
if (shouldDoOffLayout) fragConnect.doLayoutOff()
if (shouldDoOffLayout && fragConnect.isAdded) fragConnect.doLayoutOff()
} else fragConnect.doLayoutOff()
}

0 comments on commit 0757af3

Please sign in to comment.