Skip to content

Commit

Permalink
[Fixit] Remove L- version check in FirstRunActivity
Browse files Browse the repository at this point in the history
Bug: 1385893
Change-Id: I8c24bec8d0c812a8ef2494199b99cdeca1e9e1e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4117169
Commit-Queue: Theresa Sullivan <twellington@chromium.org>
Reviewed-by: Theresa Sullivan <twellington@chromium.org>
Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
Auto-Submit: Wenyu Fu <wenyufu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1085032}
  • Loading branch information
fwy423 authored and Chromium LUCI CQ committed Dec 19, 2022
1 parent 833e27f commit ead5db8
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import android.app.Activity;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.os.SystemClock;
import android.view.View;
Expand Down Expand Up @@ -423,13 +422,6 @@ public void onStart() {
activity.finish();
} else {
activity.finishAndRemoveTask();
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP_MR1) {
// On L ApiCompatibilityUtils.finishAndRemoveTask() sometimes fails. Try one
// last time, see crbug.com/781396 for origin of this approach.
if (!activity.isFinishing()) {
activity.finish();
}
}
}
}
}
Expand Down

0 comments on commit ead5db8

Please sign in to comment.