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

Commit 3535a0a6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix FingerprintService package comparison" into pi-dev

parents a153811a da1b2ab4
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) {