mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-10 14:20:55 +00:00
change from EditText.clearFocus() to CompassView.requestFocus() - no more recursion
This commit is contained in:
1 parent
12f589fdfd
commit
16065415fc
1 file changed
+4
-1
+4
-1
@@ -86,6 +86,9 @@ public class CompassView extends RelativeLayout {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
setFocusable(true);
|
||||
setFocusableInTouchMode(true);
|
||||
}
|
||||
|
||||
private void generateAndShowAlert() {
|
||||
@@ -166,7 +169,7 @@ public class CompassView extends RelativeLayout {
|
||||
if (Math.abs(degree) == 360) {
|
||||
degree = 0;
|
||||
}
|
||||
degreeView.clearFocus();
|
||||
requestFocus();
|
||||
changeListener.onDirectionChanged(degree);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user