parent
f247b171ce
commit
0722e6b3df
|
@ -30,14 +30,13 @@ public final class Symbols extends LayoutBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ExpectedKey[][] getDefaultLayout(final boolean isPhone) {
|
public static ExpectedKey[][] getDefaultLayout(final boolean isPhone) {
|
||||||
final ExpectedKeyboardBuilder builder = new ExpectedKeyboardBuilder(SYMBOLS_COMMON);
|
final ExpectedKeyboardBuilder builder = new ExpectedKeyboardBuilder(getLayout(isPhone));
|
||||||
builder.replaceKeyOfLabel(CURRENCY, Symbols.CURRENCY_DOLLAR);
|
builder.replaceKeyOfLabel(CURRENCY, Symbols.CURRENCY_DOLLAR);
|
||||||
builder.replaceKeyOfLabel(DOUBLE_QUOTE,
|
builder.replaceKeyOfLabel(DOUBLE_QUOTE,
|
||||||
key("\"", join(Symbols.DOUBLE_QUOTES_9LR, Symbols.DOUBLE_ANGLE_QUOTES_LR)));
|
key("\"", join(Symbols.DOUBLE_QUOTES_9LR, Symbols.DOUBLE_ANGLE_QUOTES_LR)));
|
||||||
builder.replaceKeyOfLabel(SINGLE_QUOTE,
|
builder.replaceKeyOfLabel(SINGLE_QUOTE,
|
||||||
key("'", join(Symbols.SINGLE_QUOTES_9LR, Symbols.SINGLE_ANGLE_QUOTES_LR)));
|
key("'", join(Symbols.SINGLE_QUOTES_9LR, Symbols.SINGLE_ANGLE_QUOTES_LR)));
|
||||||
final ExpectedKey[][] symbolsCommon = builder.build();
|
return builder.build();
|
||||||
return isPhone ? toPhoneSymbol(symbolsCommon) : toTabletSymbols(symbolsCommon);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Functional keys.
|
// Functional keys.
|
||||||
|
|
|
@ -31,11 +31,9 @@ public final class SymbolsShifted extends LayoutBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ExpectedKey[][] getDefaultLayout(final boolean isPhone) {
|
public static ExpectedKey[][] getDefaultLayout(final boolean isPhone) {
|
||||||
final ExpectedKeyboardBuilder builder = new ExpectedKeyboardBuilder(SYMBOLS_SHIFTED_COMMON);
|
final ExpectedKeyboardBuilder builder = new ExpectedKeyboardBuilder(getLayout(isPhone));
|
||||||
builder.replaceKeyOfLabel(OTHER_CURRENCIES, SymbolsShifted.CURRENCIES_OTHER_THAN_DOLLAR);
|
builder.replaceKeyOfLabel(OTHER_CURRENCIES, SymbolsShifted.CURRENCIES_OTHER_THAN_DOLLAR);
|
||||||
final ExpectedKey[][] symbolsShiftedCommon = builder.build();
|
return builder.build();
|
||||||
return isPhone ? toPhoneSymbolsShifted(symbolsShiftedCommon)
|
|
||||||
: toTabletSymbolsShifted(symbolsShiftedCommon);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Functional key.
|
// Functional key.
|
||||||
|
|
Loading…
Reference in New Issue