Skip to content

Commit

Permalink
Extract string resource for error message
Browse files Browse the repository at this point in the history
(that shows up when audio permission is requested in-recording)
  • Loading branch information
MHShetty committed Jun 25, 2024
1 parent aebc3c6 commit 0adfdd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class SettingsDialog(val mActivity: MainActivity) :
!= PackageManager.PERMISSION_GRANTED) {

// Inform the user why enabling this option isn't possible
mActivity.showMessage("Unable to request for audio permission in between a recording")
mActivity.showMessage(context.getString(R.string.audio_permission_failed_in_recording))

// Ensure the option is visually off
includeAudioToggle.isChecked = false
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,5 @@

<string name="zsl_setting_title">Use ZSL in Latency mode</string>
<string name="zsl_setting_desc">Uses Zero Shutter Lag (ZSL) in Latency mode for faster capture. Certain devices may have a buggy implementation for this.</string>
<string name="audio_permission_failed_in_recording">Unable to request for audio permission in between a recording</string>
</resources>

0 comments on commit 0adfdd0

Please sign in to comment.