Merge "PaymentDefaultDialog Could be Overlaid" into sc-dev am: a2e975064e am: cddd334ee6

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15821792

Change-Id: I8c227ad10956e94c1feb3d019bafe88f65c4116a
This commit is contained in:
TreeHugger Robot
2021-09-30 19:23:24 +00:00
committed by Automerger Merge Worker

View File

@@ -30,6 +30,8 @@ import com.android.settings.nfc.PaymentBackend.PaymentAppInfo;
import java.util.List; import java.util.List;
import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;
public final class PaymentDefaultDialog extends AlertActivity implements public final class PaymentDefaultDialog extends AlertActivity implements
DialogInterface.OnClickListener { DialogInterface.OnClickListener {
@@ -42,6 +44,9 @@ public final class PaymentDefaultDialog extends AlertActivity implements
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
try { try {
mBackend = new PaymentBackend(this); mBackend = new PaymentBackend(this);
} catch (NullPointerException e) { } catch (NullPointerException e) {