Skip to content

Commit

Permalink
Merge pull request #66 from navgurukul/bug_fixes_suraj
Browse files Browse the repository at this point in the history
glide type feature added
  • Loading branch information
surajsahani authored Nov 23, 2024
2 parents 6cb11e8 + fe4c3da commit 0a50dbb
Show file tree
Hide file tree
Showing 21 changed files with 37 additions and 36 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.inputmethod.keyboard;
package com.android.inputmethod.keyboard;

import android.graphics.Rect;
import org.oscar.kb.latin.utils.Log;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package org.inputmethod.latin;
package com.android.inputmethod.latin;

import android.text.TextUtils;
import android.util.SparseArray;

import androidx.annotation.NonNull;

import com.android.inputmethod.latin.utils.BinaryDictionaryUtils;
import com.android.inputmethod.latin.utils.WordInputEventForPersonalization;

import org.oscar.kb.latin.Dictionary;
import org.oscar.kb.latin.NgramContext;
import org.oscar.kb.latin.SuggestedWords.SuggestedWordInfo;
Expand All @@ -19,8 +22,6 @@
import org.oscar.kb.latin.settings.SettingsValuesForSuggestion;
import org.oscar.kb.latin.utils.JniUtils;

import org.inputmethod.latin.utils.BinaryDictionaryUtils;
import org.inputmethod.latin.utils.WordInputEventForPersonalization;
import org.oscar.kb.latin.makedict.DictionaryHeader;
import org.oscar.kb.latin.utils.Log;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.inputmethod.latin;
package com.android.inputmethod.latin;

import org.oscar.kb.latin.common.NativeSuggestOptions;
import org.oscar.kb.latin.define.DecoderSpecificConstants;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.inputmethod.latin.utils;
package com.android.inputmethod.latin.utils;

import com.android.inputmethod.latin.BinaryDictionary;

import org.inputmethod.latin.BinaryDictionary;
import org.oscar.kb.latin.common.StringUtils;
import org.oscar.kb.latin.makedict.DictionaryHeader;
import org.oscar.kb.latin.makedict.UnsupportedFormatException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.inputmethod.latin.utils;
package com.android.inputmethod.latin.utils;

import org.oscar.kb.latin.utils.Log;

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/org/oscar/kb/keyboard/Keyboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import org.inputmethod.keyboard.ProximityInfo;

import com.android.inputmethod.keyboard.ProximityInfo;

import org.oscar.kb.keyboard.internal.KeyVisualAttributes;
import org.oscar.kb.keyboard.internal.KeyboardIconsSet;
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/org/oscar/kb/keyboard/KeyboardLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

import androidx.annotation.NonNull;

import org.inputmethod.keyboard.ProximityInfo;

import com.android.inputmethod.keyboard.ProximityInfo;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

import androidx.annotation.Nullable;

import org.inputmethod.latin.BinaryDictionary;

import com.android.inputmethod.latin.BinaryDictionary;

import org.oscar.kb.latin.ContactsManager.ContactsChangedListener;
import org.oscar.kb.latin.common.StringUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import org.inputmethod.latin.BinaryDictionary;
import com.android.inputmethod.latin.BinaryDictionary;

import org.oscar.kb.latin.common.ComposedData;
import org.oscar.kb.latin.common.FileUtils;
import org.oscar.kb.latin.define.DecoderSpecificConstants;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package org.oscar.kb.latin;

import org.inputmethod.latin.BinaryDictionary;
import com.android.inputmethod.latin.BinaryDictionary;

import org.oscar.kb.latin.common.ComposedData;
import org.oscar.kb.latin.settings.SettingsValuesForSuggestion;

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/oscar/kb/latin/Suggest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
package org.oscar.kb.latin

import android.text.TextUtils
import org.inputmethod.latin.utils.BinaryDictionaryUtils
import com.android.inputmethod.latin.utils.BinaryDictionaryUtils
import org.oscar.kb.keyboard.Keyboard
import org.oscar.kb.latin.SuggestedWords.SuggestedWordInfo
import org.oscar.kb.latin.common.ComposedData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@

import androidx.annotation.Nullable;

import org.inputmethod.latin.BinaryDictionary;

import org.oscar.kb.latin.utils.Log;
import org.oscar.kb.latin.utils.SubtypeLocaleUtils;
import com.android.inputmethod.latin.BinaryDictionary;

import org.oscar.kb.latin.utils.Log;
import org.oscar.kb.latin.utils.SubtypeLocaleUtils;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

package org.oscar.kb.latin.makedict;

import org.inputmethod.latin.BinaryDictionary;
import com.android.inputmethod.latin.BinaryDictionary;

import org.oscar.kb.latin.utils.CombinedFormatUtils;

import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import org.inputmethod.latin.BinaryDictionary;
import com.android.inputmethod.latin.BinaryDictionary;

import org.oscar.kb.latin.Dictionary;
import org.oscar.kb.latin.NgramContext;
import org.oscar.kb.latin.common.StringUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import org.inputmethod.latin.BinaryDictionary;
import com.android.inputmethod.latin.BinaryDictionary;

import org.oscar.kb.latin.Dictionary;
import org.oscar.kb.latin.ExpandableBinaryDictionary;
import org.oscar.kb.latin.NgramContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ protected void onCreate(final Bundle savedInstanceState) {
mStepNumber = savedInstanceState.getInt(STATE_STEP);
}

if (!JniUtils.sHaveGestureLib);
// ((TextView) findViewById(R.id.setup_welcome_description)).setText("");
if (!JniUtils.sHaveGestureLib)
((TextView) findViewById(R.id.setup_welcome_description)).setText("");

sharedPreferences = getSharedPreferences("keyboard_prefs", Context.MODE_PRIVATE);
if (isSetupComplete()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import android.view.textservice.SuggestionsInfo;
import android.view.textservice.TextInfo;

import com.android.inputmethod.latin.utils.BinaryDictionaryUtils;

import org.oscar.kb.keyboard.Keyboard;
import org.oscar.kb.latin.NgramContext;
import org.oscar.kb.latin.SuggestedWords.SuggestedWordInfo;
Expand All @@ -28,7 +30,6 @@
import org.oscar.kb.latin.common.LocaleUtils;
import org.oscar.kb.latin.common.StringUtils;
import org.oscar.kb.latin.define.DebugFlags;
import org.inputmethod.latin.utils.BinaryDictionaryUtils;

import org.oscar.kb.latin.utils.DeviceProtectedUtils;
import org.oscar.kb.latin.utils.ScriptUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@

package org.oscar.kb.latin.utils;

import org.inputmethod.latin.utils.BinaryDictionaryUtils;

import com.android.inputmethod.latin.utils.BinaryDictionaryUtils;

import org.oscar.kb.latin.define.DebugFlags;
import org.oscar.kb.latin.SuggestedWords.SuggestedWordInfo;
import org.oscar.kb.latin.define.DebugFlags;
import org.oscar.kb.latin.utils.Log;

public final class AutoCorrectionUtils {
private static final String TAG = AutoCorrectionUtils.class.getSimpleName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,13 @@
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import org.inputmethod.latin.utils.BinaryDictionaryUtils;

import com.android.inputmethod.latin.utils.BinaryDictionaryUtils;

import org.oscar.kb.latin.define.DecoderSpecificConstants;
import org.oscar.kb.latin.makedict.DictionaryHeader;
import org.oscar.kb.latin.makedict.UnsupportedFormatException;
import org.oscar.kb.latin.settings.SpacingAndPunctuations;
import org.oscar.kb.latin.define.DecoderSpecificConstants;
import org.oscar.kb.latin.makedict.DictionaryHeader;
import org.oscar.kb.latin.utils.Log;

import org.oscar.kb.latin.makedict.UnsupportedFormatException;
import org.oscar.kb.latin.settings.SpacingAndPunctuations;


import java.io.File;
Expand Down
2 changes: 0 additions & 2 deletions app/src/test/java/org/oscar/kb/KeyboardParserTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodSubtype
import org.inputmethod.keyboard.ProximityInfo
import org.oscar.kb.keyboard.Key.KeyParams
import org.oscar.kb.keyboard.Keyboard
import org.oscar.kb.keyboard.KeyboardId
import org.oscar.kb.keyboard.KeyboardLayoutSet
import org.oscar.kb.keyboard.internal.KeySpecParser
Expand All @@ -18,7 +17,6 @@ import org.oscar.kb.keyboard.internal.keyboard_parser.RawKeyboardParser
import org.oscar.kb.keyboard.internal.keyboard_parser.addLocaleKeyTextsToParams
import org.oscar.kb.keyboard.internal.keyboard_parser.floris.KeyCode
import org.oscar.kb.latin.LatinIME
import org.oscar.kb.latin.RichInputMethodSubtype
import org.oscar.kb.latin.utils.AdditionalSubtypeUtils.createEmojiCapableAdditionalSubtype
import org.oscar.kb.latin.utils.POPUP_KEYS_LAYOUT
import org.oscar.kb.latin.utils.checkKeys
Expand Down
1 change: 0 additions & 1 deletion app/src/test/java/org/oscar/kb/Shadows.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import org.inputmethod.latin.utils.BinaryDictionaryUtils
import org.robolectric.annotation.Implementation
import org.robolectric.annotation.Implements
import org.robolectric.shadows.ShadowInputMethodManager
import org.oscar.kb.BuildConfig
import java.util.*

@Implements(LocaleManagerCompat::class)
Expand Down

0 comments on commit 0a50dbb

Please sign in to comment.