Skip to content

Commit

Permalink
[Fixit] Remove Toast HWA workaround for Android L
Browse files Browse the repository at this point in the history
Removing the HWA work around targeting L since the
FLAG_HARDWARE_ACCELERATED will always work with supported version (M+).

Bug: 1385893
Change-Id: Ic876297ea2c9413dda35e5811ff3c14db0247a76
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4115952
Reviewed-by: Theresa Sullivan <twellington@chromium.org>
Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
Auto-Submit: Wenyu Fu <wenyufu@chromium.org>
Commit-Queue: Theresa Sullivan <twellington@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1085043}
  • Loading branch information
fwy423 authored and Chromium LUCI CQ committed Dec 19, 2022
1 parent ce83cf0 commit 6300fe6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ui/android/java/src/org/chromium/ui/widget/Toast.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import android.content.Context;
import android.content.ContextWrapper;
import android.content.pm.ApplicationInfo;
import android.os.Build;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
Expand Down Expand Up @@ -51,10 +50,6 @@ public Toast(Context context, View toastView) {
@Override
public ApplicationInfo getApplicationInfo() {
ApplicationInfo info = new ApplicationInfo(super.getApplicationInfo());
// On Lollipop the condition we need to fail is
// "targetSdkVersion >= Build.VERSION_CODES.LOLLIPOP"
// (and for Chrome targetSdkVersion is always the latest)
info.targetSdkVersion = Build.VERSION_CODES.KITKAT;

// On M+ the condition we need to fail is
// "flags & ApplicationInfo.FLAG_HARDWARE_ACCELERATED"
Expand Down

0 comments on commit 6300fe6

Please sign in to comment.