Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b658e2df authored by Henri Chataing's avatar Henri Chataing
Browse files

Nfc: Replace use of android.view.Window->isDestroyed()

The code was testing to know if an Activity is destroyed,
directly use Activity->isDestroyed() to this purpose.

Bug: 244264995
Test: m
Change-Id: Ia3845819f65214367648f35c8e1ad685f2e00c85
parent 75117f49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ public final class NfcActivityManager extends IAppCallback.Stub
        Binder token;

        public NfcActivityState(Activity activity) {
            if (activity.getWindow().isDestroyed()) {
            if (activity.isDestroyed()) {
                throw new IllegalStateException("activity is already destroyed");
            }
            // Check if activity is resumed right now, as we will not