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

Commit 72cd7440 authored by Taran Singh's avatar Taran Singh
Browse files

Flag cleanup consistent_get_current_input_method_info

Remove flag consistent_get_current_input_method_info

Fix: 436381621
Test: atest CtsInputMethodTestCases
Flag: EXEMPT flag removal
Change-Id: I098fa11f68653d5fe15b2d8392457db403cea409
parent 4147ac18
Loading
Loading
Loading
Loading
+0 −11
Original line number Original line Diff line number Diff line
@@ -55,17 +55,6 @@ flag {
    }
    }
}
}


flag {
    name: "consistent_get_current_input_method_info"
    namespace: "input_method"
    description: "Use BindingController as the source of truth in getCurrentInputMethodInfo"
    bug: "355034523"
    is_fixed_read_only: true
    metadata {
      purpose: PURPOSE_BUGFIX
    }
}

flag {
flag {
    name: "ime_switcher_revamp"
    name: "ime_switcher_revamp"
    is_exported: true
    is_exported: true
+4 −7
Original line number Original line Diff line number Diff line
@@ -1482,14 +1482,11 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
        }
        }
        final InputMethodSettings settings = InputMethodSettingsRepository.get(userId);
        final InputMethodSettings settings = InputMethodSettingsRepository.get(userId);
        final String selectedImeId;
        final String selectedImeId;
        if (Flags.consistentGetCurrentInputMethodInfo()) {
        final var bindingController = getInputMethodBindingController(userId);
        final var bindingController = getInputMethodBindingController(userId);
        synchronized (ImfLock.class) {
        synchronized (ImfLock.class) {
            selectedImeId = bindingController.getSelectedMethodId();
            selectedImeId = bindingController.getSelectedMethodId();
        }
        }
        } else {

            selectedImeId = settings.getSelectedInputMethod();
        }
        return settings.getMethodMap().get(selectedImeId);
        return settings.getMethodMap().get(selectedImeId);
    }
    }