mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-22 16:23:09 +02:00
diagram labels don't disappear anymore after fragment changes
This commit is contained in:
@@ -97,6 +97,7 @@ public class GraphFragment extends Fragment implements FragmentUpdateListener {
|
|||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
calYears.roll(Calendar.YEAR, false);
|
calYears.roll(Calendar.YEAR, false);
|
||||||
txtYear.setText(Integer.toString(calYears.get(Calendar.YEAR)));
|
txtYear.setText(Integer.toString(calYears.get(Calendar.YEAR)));
|
||||||
|
valueLastSelected = null;
|
||||||
updateOnView(null);
|
updateOnView(null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -105,6 +106,7 @@ public class GraphFragment extends Fragment implements FragmentUpdateListener {
|
|||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
calYears.roll(Calendar.YEAR, true);
|
calYears.roll(Calendar.YEAR, true);
|
||||||
txtYear.setText(Integer.toString(calYears.get(Calendar.YEAR)));
|
txtYear.setText(Integer.toString(calYears.get(Calendar.YEAR)));
|
||||||
|
valueLastSelected = null;
|
||||||
updateOnView(null);
|
updateOnView(null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user