mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Introduce folder name type (auto vs manual).
Bug: 147769158 - Use both InputConnectionWrapper and TextWatcher to detect manual input - Also fix a bug in FolderNameProvider Change-Id: I7bc0f380c6641481d934a53e9feb77caa19c674a
This commit is contained in:
@@ -109,11 +109,14 @@ public class FolderNameProvider {
|
||||
if (contains(candidatesOut, candidate)) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < candidate.length(); i++) {
|
||||
if (TextUtils.isEmpty(candidatesOut[i])) {
|
||||
candidatesOut[i] = candidate;
|
||||
return;
|
||||
}
|
||||
}
|
||||
candidatesOut[candidate.length() - 1] = candidate;
|
||||
}
|
||||
|
||||
private boolean contains(CharSequence[] list, CharSequence key) {
|
||||
|
||||
Reference in New Issue
Block a user