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

Commit da1b2ab4 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Fix FingerprintService package comparison

Test: manual test following steps b/77633366 comment #4

Change-Id: I623c5bb3bf5af669752deab602a94747277affd4
Fixes: 77633366
parent 9cb67590
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) {