auto import from //branches/cupcake_rel/...@138607

This commit is contained in:
The Android Open Source Project
2009-03-13 13:04:25 -07:00
parent 80a7a1dbf2
commit 72ed6feab2
28 changed files with 194 additions and 243 deletions

View File

@@ -46,6 +46,7 @@ public class BluetoothPinDialog extends AlertActivity implements DialogInterface
TextWatcher {
private static final String TAG = "BluetoothPinDialog";
private final int BLUETOOTH_PIN_MAX_LENGTH = 16;
private LocalBluetoothManager mLocalManager;
private String mAddress;
private EditText mPinView;
@@ -138,8 +139,8 @@ public class BluetoothPinDialog extends AlertActivity implements DialogInterface
mPinView = (EditText) view.findViewById(R.id.text);
mPinView.addTextChangedListener(this);
// Maximum of 10 characters in a PIN
mPinView.setFilters(new InputFilter[] { new LengthFilter(10) });
// Maximum of 16 characters in a PIN
mPinView.setFilters(new InputFilter[] { new LengthFilter(BLUETOOTH_PIN_MAX_LENGTH) });
return view;
}