Skip to content

Commit bd0e312

Browse files
committed
minor update
Signed-off-by: Andrey Parfenov <[email protected]>
1 parent 6c00226 commit bd0e312

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/src/main/java/com/example/brainflowplot/DataActivity.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ protected void onCreate(Bundle savedInstanceState) {
4040
}
4141

4242
@Override
43-
protected void onStart() {
44-
super.onStart();
43+
protected void onResume() {
44+
super.onResume();
4545
// read settings
4646
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
4747
int boardId = Integer.valueOf(prefs.getString(getString(R.string.board_id_key), "-1"));
@@ -76,14 +76,14 @@ protected void onStart() {
7676
}
7777

7878
@Override
79-
protected void onStop() {
79+
protected void onPause() {
8080
try {
8181
if (boardShim != null) {
8282
boardShim.release_session();
8383
}
8484
} catch (BrainFlowError e) {
8585
Log.e(getString(R.string.log_tag), e.getMessage());
8686
}
87-
super.onStop();
87+
super.onPause();
8888
}
8989
}

app/src/main/java/com/example/brainflowplot/ui/psdplot/PSDPlotFragment.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public View onCreateView(@NonNull LayoutInflater inflater,
4949
graph.getGridLabelRenderer().setGridStyle(GridLabelRenderer.GridStyle.BOTH);
5050
graph.getViewport().setMinX(1);
5151
graph.getViewport().setMaxX(100);
52-
graph.getViewport().setMinY(0);
53-
graph.getViewport().setMaxY(10);
52+
graph.getViewport().setMinY(-7);
53+
graph.getViewport().setMaxY(7);
5454
graph.getViewport().setYAxisBoundsManual(true);
5555
graph.getViewport().setXAxisBoundsManual(true);
5656
graph.getGridLabelRenderer().setNumHorizontalLabels(20);

0 commit comments

Comments
 (0)