mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Minor follow-up / fixes to last few comits
git-svn-id: https://zxing.googlecode.com/svn/trunk@2827 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
3f838eef82
commit
874aade197
|
@ -102,7 +102,8 @@
|
|||
-->
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="@string/preferences_try_bsplus">
|
||||
<Preference android:title="@string/preferences_try_bsplus" >
|
||||
<Preference android:title="@string/preferences_try_bsplus"
|
||||
android:summary="@string/preferences_try_bsplus_summary">
|
||||
<intent android:action="android.intent.action.VIEW" android:data="market://details?id=com.srowen.bs.android" />
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
|
|
|
@ -172,7 +172,7 @@ final class DecodeHintManager {
|
|||
if (hintType.getValueType().equals(int[].class)) {
|
||||
// An integer array. Used to specify valid lengths.
|
||||
// Strip a trailing comma as in Java style array initialisers.
|
||||
if (parameterText.length() > 0 && parameterText.charAt(parameterText.length() - 1) == ',') {
|
||||
if (!parameterText.isEmpty() && parameterText.charAt(parameterText.length() - 1) == ',') {
|
||||
parameterText = parameterText.substring(0, parameterText.length() - 1);
|
||||
}
|
||||
String[] values = COMMA.split(parameterText);
|
||||
|
|
|
@ -98,7 +98,7 @@ public final class ShareActivity extends Activity {
|
|||
public boolean onKey(View view, int keyCode, KeyEvent event) {
|
||||
if (keyCode == KeyEvent.KEYCODE_ENTER && event.getAction() == KeyEvent.ACTION_DOWN) {
|
||||
String text = ((TextView) view).getText().toString();
|
||||
if (text != null && text.length() > 0) {
|
||||
if (text != null && !text.isEmpty()) {
|
||||
launchSearch(text);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue