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

Commit 06bf5793 authored by Kevin Chyn's avatar Kevin Chyn Committed by android-build-merger
Browse files

Merge "Fix FingerprintService package comparison" into pi-dev

am: 3535a0a6

Change-Id: I282f53a8399128ecb35fc6894b1914a149d98f8e
parents cf44428e 3535a0a6
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -230,10 +230,11 @@ public class FingerprintService extends SystemService implements IHwBinder.Death
                }
                List<ActivityManager.RunningTaskInfo> runningTasks = mActivityManager.getTasks(1);
                if (!runningTasks.isEmpty()) {
                    if (runningTasks.get(0).topActivity.getPackageName()
                            != mCurrentClient.getOwnerString()) {
                    final String topPackage = runningTasks.get(0).topActivity.getPackageName();
                    if (!topPackage.contentEquals(mCurrentClient.getOwnerString())) {
                        mCurrentClient.stop(false /* initiatedByClient */);
                        Slog.e(TAG, "Stopping background authentication");
                        Slog.e(TAG, "Stopping background authentication, top: " + topPackage
                                + " currentClient: " + mCurrentClient.getOwnerString());
                    }
                }
            } catch (RemoteException e) {