fix app crash when no profile set
This commit is contained in:
parent
c034f77b71
commit
b5bd6749ae
|
@ -486,7 +486,10 @@ public class OverviewFragment extends Fragment {
|
||||||
runningTempView.setVisibility(View.GONE);
|
runningTempView.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
baseBasalView.setText(DecimalFormatter.to2Decimal(pump.getBaseBasalRate()) + " U/h");
|
baseBasalView.setText(DecimalFormatter.to2Decimal(pump.getBaseBasalRate()) + " U/h");
|
||||||
activeProfileView.setText(profile.getActiveProfile());
|
|
||||||
|
if (profile != null && profile.getActiveProfile() != null)
|
||||||
|
activeProfileView.setText(profile.getActiveProfile());
|
||||||
|
|
||||||
activeProfileView.setOnLongClickListener(new View.OnLongClickListener() {
|
activeProfileView.setOnLongClickListener(new View.OnLongClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public boolean onLongClick(View view) {
|
public boolean onLongClick(View view) {
|
||||||
|
|
Loading…
Reference in a new issue