aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/utils/ViewLayoutUtils.java
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2014-03-24 20:45:37 +0900
committerYohei Yukawa <yukawa@google.com>2014-03-24 20:54:03 +0900
commitf1f5ed542d43566f30e9f03f98de9bef717465ce (patch)
tree234ca8cd14132297511352d0a6c3bcce7942f36e /java/src/com/android/inputmethod/latin/utils/ViewLayoutUtils.java
parenta17195224b132563055bef762fda0f0d6840adcf (diff)
downloadlatinime-f1f5ed542d43566f30e9f03f98de9bef717465ce.tar.gz
latinime-f1f5ed542d43566f30e9f03f98de9bef717465ce.tar.xz
latinime-f1f5ed542d43566f30e9f03f98de9bef717465ce.zip
Check null before passing to Integer.parseInt
Just after user data is cleared, user preference associated with PREF_KEYBOARD_LAYOUT is always empty. In such case, we might want to return the default value immediately, rather than calling Integer.parseInt(null) and catching NumberFormatException unnecessarily. BUG: 13472379 Change-Id: I8dca9a22780d057013c032bd1f56e730dcada3ce
Diffstat (limited to 'java/src/com/android/inputmethod/latin/utils/ViewLayoutUtils.java')
0 files changed, 0 insertions, 0 deletions