Toggle enable audio when an option selected

Fixes: 158503005
Test: manual
Change-Id: Ib5ff441f6007416df6685f3bdce58a66afd744af
This commit is contained in:
Jay Aliomer
2020-06-19 15:14:50 -04:00
parent 50980050a6
commit eb4113e03c

View File

@@ -97,6 +97,9 @@ public class ScreenRecordDialog extends Activity {
mModes);
a.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
mOptions.setAdapter(a);
mOptions.setOnItemClickListenerInt((parent, view, position, id) -> {
mAudioSwitch.setChecked(true);
});
}