mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 14:57:12 +00:00
RCApp: gate start pathfinder enables button at return
This commit is contained in:
1 parent
31a854012f
commit
d68cc8a8f6
1 file changed
+7
-1
+7
-1
@@ -2,6 +2,7 @@ package com.sap.sailing.racecommittee.app.ui.fragments.raceinfo;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.text.Editable;
|
||||
import android.text.TextUtils;
|
||||
import android.text.TextWatcher;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
@@ -157,11 +158,16 @@ public class GateStartFragment {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (!TextUtils.isEmpty(mNat.getText()) && !TextUtils.isEmpty(mNum.getText())) {
|
||||
mButton.setEnabled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void enableSetButton(View view, View button) {
|
||||
if (view.getTag(R.id.pathfinder_nat) != null && view.getTag(R.id.pathfinder_num) != null) {
|
||||
if (view != null && view.getTag(R.id.pathfinder_nat) != null && view.getTag(R.id.pathfinder_num) != null) {
|
||||
button.setEnabled(
|
||||
(Boolean) view.getTag(R.id.pathfinder_nat) && (Boolean) view.getTag(R.id.pathfinder_num));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user