Fix invalid type crash when attempting to recover keyboard landscape height.

A bug with setter using long means it easier to just use long going
forward.
This commit is contained in:
Cody Henthorne 2023-07-25 11:35:58 -04:00
parent 5648fd2e91
commit 912299bcfd

View file

@ -262,7 +262,7 @@ public final class MiscellaneousValues extends SignalStoreValues {
}
public int getKeyboardLandscapeHeight() {
int height = getInteger(KEYBOARD_LANDSCAPE_HEIGHT, 0);
int height = (int) getLong(KEYBOARD_LANDSCAPE_HEIGHT, 0);
if (height == 0) {
//noinspection deprecation
height = PreferenceManager.getDefaultSharedPreferences(ApplicationDependencies.getApplication())