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

Commit efdb9f7b authored by Selim Cinek's avatar Selim Cinek Committed by Android Git Automerger
Browse files

am 514fa3c0: am a6aa1fbd: am d4d61826: Merge "Not allowing empty fingerprint...

am 514fa3c0: am a6aa1fbd: am d4d61826: Merge "Not allowing empty fingerprint names anymore" into mnc-dr-dev

* commit '514fa3c0':
  Not allowing empty fingerprint names anymore
parents faca9cbb 514fa3c0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.server.fingerprint;
import android.content.Context;
import android.hardware.fingerprint.Fingerprint;
import android.os.Vibrator;
import android.text.TextUtils;
import android.util.SparseArray;

import com.android.internal.annotations.GuardedBy;
@@ -64,6 +65,10 @@ public class FingerprintUtils {
    }

    public void renameFingerprintForUser(Context ctx, int fingerId, int userId, CharSequence name) {
        if (TextUtils.isEmpty(name)) {
            // Don't do the rename if it's empty
            return;
        }
        getStateForUser(ctx, userId).renameFingerprint(fingerId, name);
    }