Loading java/res/layout/main_keyboard_frame.xml +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ android:id="@+id/floating_button" android:layout_width="40dp" android:layout_height="40dp" android:padding="8dp" android:padding="10dp" android:layout_gravity="top|end" android:background="@android:color/transparent" android:src="@drawable/ic_ime_switch" Loading java/src/com/android/inputmethod/latin/LatinIME.java +0 −10 Original line number Diff line number Diff line Loading @@ -904,7 +904,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } floatingButton = mInputView.findViewById(R.id.floating_button); floatingButton.setPadding(8,8,8,8); floatingButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Loading Loading @@ -942,7 +941,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } private boolean shouldShowFloatingButton() { Log.d("xxx", ">>>"+hasSuggestionStripView()); return AccountInfoContentProvider.isPremiumAccount(getApplicationContext()) && isSttKeyboardActivated() && hasSuggestionStripView(); } Loading Loading @@ -1012,7 +1010,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @SuppressWarnings("deprecation") void onStartInputViewInternal(final EditorInfo editorInfo, final boolean restarting) { super.onStartInputView(editorInfo, restarting); Log.d("xxx", "onStartInputViewInternal "); mDictionaryFacilitator.onStartInput(); // Switch to the null consumer to handle cases leading to early exit below, for which we // also wouldn't be consuming gesture data. Loading Loading @@ -1686,7 +1683,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen private void setSuggestedWords(final SuggestedWords suggestedWords) { final SettingsValues currentSettingsValues = mSettings.getCurrent(); Log.d("xxx", "setSuggestedWords"); mInputLogic.setSuggestedWords(suggestedWords); // TODO: Modify this when we support suggestions with hard keyboard if (!hasSuggestionStripView()) { Loading @@ -1709,10 +1705,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen && !currentSettingsValues.mInputAttributes.mIsPasswordField; mSuggestionStripView.updateVisibility(shouldShowSuggestionsStrip, isFullscreenMode()); Log.d("xxx", "setSuggestedWords >" + shouldShowSuggestionsStrip); Log.d("xxx", "setSuggestedWords currentSettingsValues.mInputAttributes.mShouldShowSuggestions>" + currentSettingsValues.mInputAttributes.mShouldShowSuggestions); Log.d("xxx", "setSuggestedWords currentSettingsValues.mInputAttributes.mIsPasswordField>" + currentSettingsValues.mInputAttributes.mIsPasswordField); if (!shouldShowSuggestionsStrip) { return; } Loading Loading @@ -2139,8 +2131,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (mInputView == null) return; android.util.Log.d("xxx", "updateNavigationBarColor"); if (BuildCompatUtils.EFFECTIVE_SDK_INT > Build.VERSION_CODES.R) { Drawable bg = mInputView.findViewById(R.id.keyboard_view).getBackground(); Window w = getWindow().getWindow(); Loading Loading
java/res/layout/main_keyboard_frame.xml +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ android:id="@+id/floating_button" android:layout_width="40dp" android:layout_height="40dp" android:padding="8dp" android:padding="10dp" android:layout_gravity="top|end" android:background="@android:color/transparent" android:src="@drawable/ic_ime_switch" Loading
java/src/com/android/inputmethod/latin/LatinIME.java +0 −10 Original line number Diff line number Diff line Loading @@ -904,7 +904,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } floatingButton = mInputView.findViewById(R.id.floating_button); floatingButton.setPadding(8,8,8,8); floatingButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Loading Loading @@ -942,7 +941,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } private boolean shouldShowFloatingButton() { Log.d("xxx", ">>>"+hasSuggestionStripView()); return AccountInfoContentProvider.isPremiumAccount(getApplicationContext()) && isSttKeyboardActivated() && hasSuggestionStripView(); } Loading Loading @@ -1012,7 +1010,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @SuppressWarnings("deprecation") void onStartInputViewInternal(final EditorInfo editorInfo, final boolean restarting) { super.onStartInputView(editorInfo, restarting); Log.d("xxx", "onStartInputViewInternal "); mDictionaryFacilitator.onStartInput(); // Switch to the null consumer to handle cases leading to early exit below, for which we // also wouldn't be consuming gesture data. Loading Loading @@ -1686,7 +1683,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen private void setSuggestedWords(final SuggestedWords suggestedWords) { final SettingsValues currentSettingsValues = mSettings.getCurrent(); Log.d("xxx", "setSuggestedWords"); mInputLogic.setSuggestedWords(suggestedWords); // TODO: Modify this when we support suggestions with hard keyboard if (!hasSuggestionStripView()) { Loading @@ -1709,10 +1705,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen && !currentSettingsValues.mInputAttributes.mIsPasswordField; mSuggestionStripView.updateVisibility(shouldShowSuggestionsStrip, isFullscreenMode()); Log.d("xxx", "setSuggestedWords >" + shouldShowSuggestionsStrip); Log.d("xxx", "setSuggestedWords currentSettingsValues.mInputAttributes.mShouldShowSuggestions>" + currentSettingsValues.mInputAttributes.mShouldShowSuggestions); Log.d("xxx", "setSuggestedWords currentSettingsValues.mInputAttributes.mIsPasswordField>" + currentSettingsValues.mInputAttributes.mIsPasswordField); if (!shouldShowSuggestionsStrip) { return; } Loading Loading @@ -2139,8 +2131,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (mInputView == null) return; android.util.Log.d("xxx", "updateNavigationBarColor"); if (BuildCompatUtils.EFFECTIVE_SDK_INT > Build.VERSION_CODES.R) { Drawable bg = mInputView.findViewById(R.id.keyboard_view).getBackground(); Window w = getWindow().getWindow(); Loading