Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Do not halt window if connection is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Jun 28, 2019
1 parent d982364 commit 9be981c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ private void setDeviceType(int aType) {
@SuppressWarnings("unused")
private void haltActivity(final int aReason) {
runOnUiThread(() -> {
if (mWindowWidget != null) {
if (mConnectionAvailable && mWindowWidget != null) {
mWindowWidget.showAlert(getString(R.string.not_entitled_title), getString(R.string.not_entitled_message, getString(R.string.app_name)), new GeckoSession.PromptDelegate.AlertCallback() {
@Override
public void dismiss() {
Expand Down

0 comments on commit 9be981c

Please sign in to comment.