cpp-130: Make drag buttons more usable

The maximum distance of detecting dragging was removed.
The minimum distance now uses DPI value.

Fixes #130
This commit is contained in:
serso
2015-02-16 10:15:37 +01:00
parent 123c745fa5
commit b2eed7a0c3
10 changed files with 104 additions and 303 deletions

View File

@@ -44,7 +44,6 @@ public class CalculatorKeyboardImpl implements CalculatorKeyboard {
@Override
public void buttonPressed(@Nullable final String text) {
if (!Strings.isEmpty(text)) {
if (text == null) throw new AssertionError();