aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Wu <85952307+robertwu1@users.noreply.github.com>2024-03-06 15:05:50 -0800
committerGitHub <noreply@github.com>2024-03-06 15:05:50 -0800
commitc1d4eaf60ee06110cdf467b4c55622844d7756f1 (patch)
tree92c9bb187cb58bbcb66f7206bc835637e0d8770f
parenta0e3b6503742882ca0fffa68c29c2b3caf740276 (diff)
downloadoboe-c1d4eaf60ee06110cdf467b4c55622844d7756f1.tar.gz
oboetester: override previous channel mask/count selection (#1973)
-rw-r--r--apps/OboeTester/app/src/main/java/com/mobileer/oboetester/StreamConfigurationView.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/StreamConfigurationView.java b/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/StreamConfigurationView.java
index 418d08e5..9a6fd266 100644
--- a/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/StreamConfigurationView.java
+++ b/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/StreamConfigurationView.java
@@ -520,11 +520,17 @@ public class StreamConfigurationView extends LinearLayout {
}
private void onChannelCountSpinnerSelected() {
- mIsChannelMaskLastSelected = false;
+ if (mChannelCountSpinner.getSelectedItemPosition() != 0) {
+ mChannelMaskSpinner.setSelection(0); // Override the previous channel mask selection
+ mIsChannelMaskLastSelected = false;
+ }
}
private void onChannelMaskSpinnerSelected() {
- mIsChannelMaskLastSelected = true;
+ if (mChannelMaskSpinner.getSelectedItemPosition() != 0) {
+ mChannelCountSpinner.setSelection(0); // Override the previous channel count selection
+ mIsChannelMaskLastSelected = true;
+ }
}
private void onRequestAudioEffectClicked(boolean isChecked) {