Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
kryukov committed Nov 4, 2013
1 parent 9eed7f6 commit 31d81bb
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions j2me/src/jimmui/view/InputTextBox.java
Expand Up @@ -58,7 +58,7 @@ private int getItemType() {
return Jimm.getJimm().phone.isPhone(jimm.PhoneInfo.PHONE_NOKIA) ? Command.SCREEN : Command.ITEM;
}
private TextBox createTextBox() {
TextBox box = null;
TextBox box;
final int MAX_CHAR_PER_PAGE = Jimm.getJimm().phone.isPhone(PhoneInfo.PHONE_SE) ? 9000 : 3000;
final int MIN_CHAR_PER_PAGE = 1000;
try {
Expand Down Expand Up @@ -192,14 +192,14 @@ private void updateConstraints() {
boolean hasCaps = Options.getBoolean(Options.OPTION_TF_FLAGS);

try {
if ((0 != (realMode & caps)) != hasCaps) {
if ((0 == (realMode & caps)) == hasCaps) {
int mode = inputType;
if (hasCaps) {
mode |= caps;
}
textBox.setConstraints(mode);
}
} catch (Exception e) {
} catch (Exception ignored) {
}
}
protected void closed() {
Expand Down Expand Up @@ -285,9 +285,6 @@ public final String getSpace() {
return Options.getBoolean(Options.OPTION_DETRANSLITERATE) ? " " : " ";
}

public boolean isCancelCommand(Command cmd) {
return cancelCommand == cmd;
}
public String getRawString() {
String text = StringUtils.notNull(textBox.getString());
return StringUtils.removeCr(text);
Expand Down Expand Up @@ -336,9 +333,6 @@ public final void setCaption(String title) {
}
}
}
private String getCaption() {
return caption;
}

private void setTextToBox(String text) {
if (null != text) {
Expand Down

0 comments on commit 31d81bb

Please sign in to comment.