am d4d61826: Merge "Not allowing empty fingerprint names anymore" into mnc-dr-dev
* commit 'd4d61826d0499d77c0501bd150b5f7395c94fd13': Not allowing empty fingerprint names anymore
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user