Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public Bridge getBridge() {
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
bridge.saveInstanceState(outState);
if (bridge != null) {
bridge.saveInstanceState(outState);
}
}

@Override
Expand All @@ -82,8 +84,10 @@ public void onStart() {
@Override
public void onRestart() {
super.onRestart();
this.bridge.onRestart();
Logger.debug("App restarted");
if (this.bridge != null) {
this.bridge.onRestart();
Logger.debug("App restarted");
}
}

@Override
Expand Down Expand Up @@ -131,7 +135,9 @@ public void onDestroy() {
@Override
public void onDetachedFromWindow() {
super.onDetachedFromWindow();
this.bridge.onDetachedFromWindow();
if (this.bridge != null) {
this.bridge.onDetachedFromWindow();
}
}

/**
Expand Down