Skip to content

Commit

Permalink
Merge pull request #12 from shadow578/feature/long-press-to-reload-tr…
Browse files Browse the repository at this point in the history
…acks

long-press to reload tracks
  • Loading branch information
shadow578 authored Oct 1, 2022
2 parents 5471ae4 + 25184c4 commit dd927c2
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.google.android.material.switchmaterial.SwitchMaterial
import io.github.shadow578.yodel.databinding.ActivityDeveloperToolsBinding
import io.github.shadow578.yodel.ui.base.BaseActivity
import io.github.shadow578.yodel.util.copyToClipboard
import io.github.shadow578.yodel.util.toast

/**
* developer tools activity
Expand Down Expand Up @@ -42,12 +43,20 @@ class DeveloperToolsActivity : BaseActivity() {

// setup logcat dump
b.dumpLogcat.setOnClickListener {
this.toast("long press to activate!")
}
b.dumpLogcat.setOnLongClickListener {
model.dumpLogcat(this)
true
}

// setup reload all
b.reloadAllTracks.setOnClickListener {
this.toast("long press to activate!")
}
b.reloadAllTracks.setOnLongClickListener {
model.reloadAllTracks()
true
}

// init and bind switches for dev flags
Expand Down

0 comments on commit dd927c2

Please sign in to comment.