Skip to content

Commit

Permalink
Merge pull request #3357 from Philoul/Fix/GraphButtonSimpleMode
Browse files Browse the repository at this point in the history
Fix Graph Menu in History Browser
  • Loading branch information
MilosKozak committed Jun 19, 2024
2 parents 2fe6e09 + aef6122 commit 6473434
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class HistoryBrowseActivity : TranslatedDaggerAppCompatActivity() {
loadAll("onLongClickZoom")
true
}
binding.chartMenuButton.visibility = preferences.simpleMode.not().toVisibility()

binding.date.setOnClickListener {
MaterialDatePicker.Builder.datePicker()
Expand Down Expand Up @@ -179,6 +180,10 @@ class HistoryBrowseActivity : TranslatedDaggerAppCompatActivity() {
.toObservable(EventUpdateOverviewGraph::class.java)
.observeOn(aapsSchedulers.main)
.subscribe({ updateGUI("EventRefreshOverview") }, fabricPrivacy::logException)
disposable += rxBus
.toObservable(EventRefreshOverview::class.java)
.observeOn(aapsSchedulers.main)
.subscribe({ updateGUI("EventRefreshOverview") }, fabricPrivacy::logException)
disposable += rxBus
.toObservable(EventScale::class.java)
.observeOn(aapsSchedulers.main)
Expand Down

0 comments on commit 6473434

Please sign in to comment.