Skip to content

Commit

Permalink
Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
andreban committed Jun 7, 2021
1 parent 762b94b commit ec21f95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public class FirebaseAnalyticsLauncherActivity extends LauncherActivity {
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// The Activity was finished before the launch because an existing instance of
// the app was brought to front. We don't want to call launchTwa() in this case.
// `super.onCreate()` may have called `finish()`. In this case, we don't do any work.
if (isFinishing()) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ public class OfflineFirstTWALauncherActivity extends LauncherActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// The Activity was finished before the launch because an existing instance of
// the app was brought to front. We don't want to call launchTwa() in this case.
// `super.onCreate()` may have called `finish()`. In this case, we don't do any work.
if (isFinishing()) {
return;
}
Expand Down

0 comments on commit ec21f95

Please sign in to comment.