Merge pull request #1118 from jotomo/1096

Disable slope deviation unless on dev branch, fixes #1096.
This commit is contained in:
AdrianLxM 2018-06-21 06:00:17 +02:00 committed by GitHub
commit 809ad97cb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1422,7 +1422,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
secondGraphData.addDeviations(fromTime, now, useDevForScale, 1d);
if (SP.getBoolean("showratios", false))
secondGraphData.addRatio(fromTime, now, useRatioForScale, 1d);
if (SP.getBoolean("showdevslope", false))
if (SP.getBoolean("showdevslope", false) && MainApp.devBranch)
secondGraphData.addDeviationSlope(fromTime, now, useDSForScale, 1d);
// **** NOW line ****