Skip to content

Commit

Permalink
Merge pull request #36 from Aga-C/default-mp3
Browse files Browse the repository at this point in the history
Changed default file type to MP3 (#35)
  • Loading branch information
naveensingh authored Sep 20, 2024
2 parents 1901084 + 6fb1c78 commit 0faad4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ class SettingsActivity : SimpleActivity() {
binding.settingsExtension.text = config.getExtensionText()
binding.settingsExtensionHolder.setOnClickListener {
val items = arrayListOf(
RadioItem(EXTENSION_M4A, getString(R.string.m4a)),
RadioItem(EXTENSION_MP3, getString(R.string.mp3))
RadioItem(EXTENSION_MP3, getString(R.string.mp3)),
RadioItem(EXTENSION_M4A, getString(R.string.m4a))
)

if (isQPlus()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Config(context: Context) : BaseConfig(context) {
set(saveRecordingsFolder) = prefs.edit().putString(SAVE_RECORDINGS, saveRecordingsFolder).apply()

var extension: Int
get() = prefs.getInt(EXTENSION, EXTENSION_M4A)
get() = prefs.getInt(EXTENSION, EXTENSION_MP3)
set(extension) = prefs.edit().putInt(EXTENSION, extension).apply()

var audioSource: Int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const val EXTENSION_MP3 = 1
const val EXTENSION_OGG = 2

val BITRATES = arrayListOf(32000, 64000, 96000, 128000, 160000, 192000, 256000, 320000)
const val DEFAULT_BITRATE = 128000
const val DEFAULT_BITRATE = 192000
const val SAMPLE_RATE = 44100

const val RECORDING_RUNNING = 0
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/settings_extension_label"
tools:text="@string/m4a" />
tools:text="@string/mp3" />

</RelativeLayout>

Expand Down Expand Up @@ -265,7 +265,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/settings_bitrate_label"
tools:text="128 kbps" />
tools:text="192 kbps" />

</RelativeLayout>

Expand Down

0 comments on commit 0faad4c

Please sign in to comment.