Skip to content

Commit 1252300

Browse files
AZADAYAZAZADAYAZ
authored andcommitted
Fix deficiencies in PR 379, add missing strings from upstream, and translate Turkish comments to English
1 parent 3dbc19a commit 1252300

2 files changed

Lines changed: 719 additions & 759 deletions

File tree

app/src/main/java/helium314/keyboard/latin/RichInputConnection.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public void commitCodePoint(final int codePoint) {
278278
}
279279

280280
public void commitText(final CharSequence text, final int newCursorPosition) {
281-
// --- EKLENEN KARA LİSTE KONTROLÜ ---
281+
// --- ADDED BLACKLIST CONTROL ---
282282
if (text != null && isWordBlocked(text.toString())) {
283283
mComposingText.setLength(0);
284284
if (isConnected()) {
@@ -651,7 +651,7 @@ public boolean setComposingTextWithBackgroundColor(final CharSequence newComposi
651651
}
652652

653653
public boolean setComposingText(final CharSequence text, final int newCursorPosition) {
654-
// --- EKLENEN KARA LİSTE KONTROLÜ ---
654+
// --- ADDED BLACKLIST CONTROL ---
655655
if (text != null && isWordBlocked(text.toString())) {
656656
mComposingText.setLength(0);
657657
if (isConnected()) {
@@ -1059,17 +1059,17 @@ public boolean requestCursorUpdates(final boolean enableMonitor, final boolean r
10591059
return mIC.requestCursorUpdates(cursorUpdateMode);
10601060
}
10611061

1062-
// --- EKLENEN KARA LİSTE KONTROLÜ İÇİN YARDIMCI METOD ---
1062+
// --- HELPER METHOD FOR ADDED BLACKLIST CONTROL ---
10631063
/**
1064-
* DİKKAT: Bu metodu LeanType'ın asıl kara liste mantığına bağlaman gerekiyor.
1065-
* Şimdilik örnek olarak false döndürüyor.
1064+
* NOTE: You need to connect this method to LeanType's actual blacklist logic.
1065+
* For now, it returns false as an example.
10661066
*/
10671067
private boolean isWordBlocked(String text) {
10681068
if (TextUtils.isEmpty(text)) return false;
10691069

10701070
String normalizedWord = text.trim().toLowerCase();
10711071

1072-
// Örnek kullanım:
1072+
// Example usage:
10731073
// return BlacklistManager.getInstance().isBlocked(normalizedWord);
10741074

10751075
return false;

0 commit comments

Comments
 (0)