Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08759adf authored by frankpreel's avatar frankpreel
Browse files

TEST3

parent 86394fad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"
+0 −10
Original line number Diff line number Diff line
@@ -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) {
@@ -942,7 +941,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
    }

    private boolean shouldShowFloatingButton() {
        Log.d("xxx", ">>>"+hasSuggestionStripView());
        return AccountInfoContentProvider.isPremiumAccount(getApplicationContext()) && isSttKeyboardActivated() 
            && hasSuggestionStripView();
    }
@@ -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.
@@ -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()) {
@@ -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;
        }
@@ -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();