Skip to content

Commit 7986561

Browse files
committed
Don't try to go back if fragment not yet added
1 parent 356d487 commit 7986561

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/src/main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ class BrowserTabFragment : Fragment(), FindListener {
796796
}
797797

798798
fun onBackPressed(): Boolean {
799+
if (!isAdded) return false
799800
return viewModel.onUserPressedBack()
800801
}
801802

app/version/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# limitations under the License.
1515
#
1616

17-
VERSION=5.22.0
17+
VERSION=5.22.1

0 commit comments

Comments
 (0)