Merge branch 'audiorecorder-3.0.54'

This commit is contained in:
Alexey Kuznetsov 2017-11-19 10:48:35 +03:00
commit 3d282c34e4
20 changed files with 155 additions and 562 deletions

View file

@ -4,14 +4,14 @@ import com.android.build.OutputFile
android {
compileSdkVersion 25
buildToolsVersion "26.0.2"
buildToolsVersion "27.0.1"
defaultConfig {
applicationId "com.github.axet.audiorecorder"
minSdkVersion 9
targetSdkVersion 23 // 24+ file:// unable to open
versionCode 219
versionName "3.0.53"
versionCode 220
versionName "3.0.54"
}
signingConfigs {
release {
@ -55,5 +55,5 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.github.axet:android-audio-library:1.0.55' // compile project(':android-audio-library')
compile 'com.github.axet:android-audio-library:1.0.56' // compile project(':android-audio-library')
}

View file

@ -515,6 +515,8 @@ public class RecordingActivity extends AppCompatActivity {
if (r != buf.len)
throw new RuntimeException("unable to read data");
int last = buf.len / buf.getChannels() - 1;
if (play != null)
play.release();
play = AudioTrack.create(Sound.SOUND_STREAM, Sound.SOUND_CHANNEL, Sound.SOUND_TYPE, buf);
play.setNotificationMarkerPosition(last);
play.setPositionNotificationPeriod(playUpdate);
@ -603,6 +605,11 @@ public class RecordingActivity extends AppCompatActivity {
pscl = null;
}
if (play != null) {
play.release();
play = null;
}
if (encoder != null) {
encoder.close();
encoder = null;

View file

@ -246,10 +246,9 @@ public class SettingsActivity extends AppCompatActivity implements SharedPrefere
bindPreferenceSummaryToValue(pm.findPreference(MainApplication.PREFERENCE_FORMAT));
StoragePathPreferenceCompat s = (StoragePathPreferenceCompat) pm.findPreference(MainApplication.PREFERENCE_STORAGE);
s.setStorage(new Storage(getContext()));
s.setPermissionsDialog(this, PERMISSIONS, 1);
if (Build.VERSION.SDK_INT >= 21)
s.setStorageAccessFramework(this, 2);
else
s.setPermissionsDialog(this, PERMISSIONS, 1);
}
@Override

View file

@ -39,4 +39,20 @@
<string name="stop_button">Stop</string>
<string name="cancel_button">Abbruch</string>
<string name="pause_button">Pause</string>
<string name="pref_storage_title">Speicherpfad</string>
<string name="pref_rate_title">Abtastrate</string>
<string name="pref_encoding_title">Encoding</string>
<string name="pref_encoding_summary">Ausgabedateiformate (.wav, .m4a, ...)</string>
<string name="pref_mode_title">Mono/Stereo</string>
<string name="pref_mode_summary">Aufnahmekanäle</string>
<string name="pref_nameformat_title">Format für Name</string>
<string name="pref_pausecalls_title">Pausieren während Telefonaten</string>
<string name="pref_pausecalls_summary">Stoppe Aufnahme bei Anrufannahme und setze nach Auflegen fort</string>
<string name="pref_silence_title">Ruhe-Modus</string>
<string name="pref_silence_summary">Aktiviere Audio-Profil \'Nicht Stören\' während Aufnahmen</string>
<string name="pref_lockscreen_title">Steuerelemente im Sperrbildschirm</string>
<string name="pref_lockscreen_summary">Zeige Steuerelemente im Sperrbildschirm an</string>
<string name="pref_theme_title">App-Theme</string>
<string name="pref_theme.summary">Wähle App-Theme (dunkel / hell)</string>
</resources>

View file

@ -39,4 +39,20 @@
<string name="stop_button">Stopper</string>
<string name="cancel_button">Annuler</string>
<string name="pause_button">Pause</string>
<string name="pref_storage_title">Dossier de stockage</string>
<string name="pref_rate_title">Taux d\'échantillonnage</string>
<string name="pref_encoding_title">Encodage</string>
<string name="pref_encoding_summary">Formats de sortie (.wav, .m4a, ...)</string>
<string name="pref_mode_title">Mode</string>
<string name="pref_mode_summary">Canaux d\'enregistrements</string>
<string name="pref_nameformat_title">Format de nommage</string>
<string name="pref_pausecalls_title">Mettre en pause durant les appels</string>
<string name="pref_pausecalls_summary">Arrêtez l\'enregistrement lorsque vous répondez à un appel et se poursuit lorsque vous posez</string>
<string name="pref_silence_title">Mode Silence</string>
<string name="pref_silence_summary">Mettre le téléphone en mode silencieux pendant l\'enregistrement</string>
<string name="pref_lockscreen_title">Contrôles écran éteint</string>
<string name="pref_lockscreen_summary">Montrez les contrôles quand le téléphone est vérrouillé</string>
<string name="pref_theme_title">Application du Theme</string>
<string name="pref_theme.summary">Appliquer le théme (Sombre | Blanc)</string>
</resources>

View file

@ -39,4 +39,20 @@
<string name="stop_button">Stop</string>
<string name="cancel_button">Cancel</string>
<string name="pause_button">Pause</string>
<string name="pref_storage_title">Salva file in ...</string>
<string name="pref_rate_title">Frequenza di campionamento</string>
<string name="pref_encoding_title">Codifica</string>
<string name="pref_encoding_summary">Formato del file prodotto (.wav, .m4a, ...)</string>
<string name="pref_mode_title">Canali</string>
<string name="pref_mode_summary">Numero di canali per la registrazione</string>
<string name="pref_nameformat_title">Formato per il nome</string>
<string name="pref_pausecalls_title">Pausa durante le chiamate</string>
<string name="pref_pausecalls_summary">Ferma la registrazione quando rispondi a chiamate e continua quando metti giù</string>
<string name="pref_silence_title">Silenzioso</string>
<string name="pref_silence_summary">Metti in cellulare in \'silenzioso\' durante le registrazioni</string>
<string name="pref_lockscreen_title">Controlli su schermo bloccato</string>
<string name="pref_lockscreen_summary">Mostra i controlli quando il cellulare è bloccato</string>
<string name="pref_theme_title">Tema applicazione</string>
<string name="pref_theme.summary">Imposta il tema dell'applicazione (scuro / chiaro)</string>
</resources>

View file

@ -39,4 +39,20 @@
<string name="stop_button">Stop</string>
<string name="cancel_button">Cancel</string>
<string name="pause_button">Pause</string>
<string name="pref_storage_title">ストレージのパス</string>
<string name="pref_rate_title">サンプルレート</string>
<string name="pref_encoding_title">エンコーディング</string>
<string name="pref_encoding_summary">出力ファイル形式 (.wav, .m4a, ...)</string>
<string name="pref_mode_title">モード</string>
<string name="pref_mode_summary">録音チャンネル</string>
<string name="pref_nameformat_title">名前の書式</string>
<string name="pref_pausecalls_title">着信時に一時停止</string>
<string name="pref_pausecalls_summary">着信して通話をする間、録音を停止します</string>
<string name="pref_silence_title">マナーモード</string>
<string name="pref_silence_summary">録音中、電話を \'マナーモード\' にします</string>
<string name="pref_lockscreen_title">ロック画面コントロール</string>
<string name="pref_lockscreen_summary">電話がロックされた時にコントロールを表示します</string>
<string name="pref_theme_title">アプリケーションのテーマ</string>
<string name="pref_theme.summary">アプリケーションのテーマを設定します (ダーク / ライト)</string>
</resources>

View file

@ -39,4 +39,20 @@
<string name="stop_button">Stop</string>
<string name="cancel_button">Cancel</string>
<string name="pause_button">Pause</string>
<string name="pref_storage_title">Destino das gravações</string>
<string name="pref_rate_title">Taxa de amostragem</string>
<string name="pref_encoding_title">Codificação</string>
<string name="pref_encoding_summary">Formato de saída do arquivo (.wav, .mp3, etc.)</string>
<string name="pref_mode_title">Modo</string>
<string name="pref_mode_summary">Canais a gravar</string>
<string name="pref_nameformat_title">Formato do nome de arquivo</string>
<string name="pref_pausecalls_title">Pausar durante chamadas</string>
<string name="pref_pausecalls_summary">e voltar a gravar quando a chamada for desligada</string>
<string name="pref_silence_title">Modo silencioso</string>
<string name="pref_silence_summary">Silenciar o aparelho durante a gravação</string>
<string name="pref_lockscreen_title">Controle da tela bloqueada</string>
<string name="pref_lockscreen_summary">Mostrar controles quando a tela estiver bloqueada</string>
<string name="pref_theme_title">Tema do app</string>
<string name="pref_theme.summary">Definir o tema (claro ou escuro)</string>
</resources>

View file

@ -39,4 +39,20 @@
<string name="stop_button">Стоп</string>
<string name="cancel_button">Отмена</string>
<string name="pause_button">Пауза</string>
<string name="pref_storage_title">Папка для хранения</string>
<string name="pref_rate_title">Частота записи</string>
<string name="pref_encoding_title">Кодировка</string>
<string name="pref_encoding_summary">Формат выходного файла (.wav, .m4a, ...)</string>
<string name="pref_mode_title">Режим</string>
<string name="pref_mode_summary">Режим записи</string>
<string name="pref_nameformat_title">Имя нового файла</string>
<string name="pref_pausecalls_title">Пауза на время разговора</string>
<string name="pref_pausecalls_summary">Останавливать запись на время разговора по телефону</string>
<string name="pref_silence_title">Режим тишины</string>
<string name="pref_silence_summary">Включать беззвучный режим на время записи</string>
<string name="pref_lockscreen_title">Панель управления</string>
<string name="pref_lockscreen_summary">Показывать панель управления когда телефон заблокирован</string>
<string name="pref_theme_title">Тема приложения</string>
<string name="pref_theme.summary">Установить тему приложения (темная / светлая)</string>
</resources>

View file

@ -39,4 +39,20 @@
<string name="stop_button">Zastaviť</string>
<string name="cancel_button">Zrušiť</string>
<string name="pause_button">Pozastaviť</string>
<string name="pref_storage_title">Priečinok s nahrávkami</string>
<string name="pref_rate_title">Vzorkovacia frekvencia</string>
<string name="pref_encoding_title">Kódovanie</string>
<string name="pref_encoding_summary">Výstupný zvukový formát (.wav, .m4a, ...)</string>
<string name="pref_mode_title">Režim</string>
<string name="pref_mode_summary">Zvukové kanály</string>
<string name="pref_nameformat_title">Formát názvu súboru</string>
<string name="pref_pausecalls_title">Pozastaviť počas hovoru</string>
<string name="pref_pausecalls_summary">Zastaví nahrávanie po prijatí hovoru a po jeho ukončení bude nahrávanie pokračovať</string>
<string name="pref_silence_title">Tichý režim</string>
<string name="pref_silence_summary">Prepnúť zariadenie do tichého režimu počas nahrávania</string>
<string name="pref_lockscreen_title">Tlačidlá na uzamikacej obrazovke</string>
<string name="pref_lockscreen_summary">Zobraziť ovládacie prvky na zamikacej obrazovke</string>
<string name="pref_theme_title">Téma</string>
<string name="pref_theme.summary">Farebná téma aplikácie (svetlá / tmavá)</string>
</resources>

View file

@ -71,4 +71,20 @@
<string name="stop_button">Stop</string>
<string name="cancel_button">Cancel</string>
<string name="pause_button">Pause</string>
<string name="pref_storage_title">Storage Path</string>
<string name="pref_rate_title">Sample Rate</string>
<string name="pref_encoding_title">Encoding</string>
<string name="pref_encoding_summary">Output file formats (.wav, .m4a, ...)</string>
<string name="pref_mode_title">Mode</string>
<string name="pref_mode_summary">Recording channels</string>
<string name="pref_nameformat_title">Name Format</string>
<string name="pref_pausecalls_title">Pause During Calls</string>
<string name="pref_pausecalls_summary">Stop recording on answering and continue on hangup</string>
<string name="pref_silence_title">Silence Mode</string>
<string name="pref_silence_summary">Put phone in \'silence mode\' during recording</string>
<string name="pref_lockscreen_title">Lockscreen Controls</string>
<string name="pref_lockscreen_summary">Show controls when phone is locked</string>
<string name="pref_theme_title">Application Theme</string>
<string name="pref_theme.summary">Set application theme (dark / light)</string>
</resources>

View file

@ -1,77 +0,0 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.github.axet.androidlibrary.widgets.StoragePathPreferenceCompat
android:defaultValue="Audio Recorder"
android:key="storage_path"
android:summary="/sdcard/some/"
android:title="Speicherpfad" />
<ListPreference
android:defaultValue="16000"
android:entries="@array/sample_rate_text"
android:entryValues="@array/sample_rate_values"
android:key="sample_rate"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="44100"
android:title="Abtastrate" />
<ListPreference
android:defaultValue="ogg"
android:entries="@array/encodings_text"
android:entryValues="@array/encodings_values"
android:key="encoding"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Ausgabedateiformate (.wav, .m4a, ...)"
android:title="Encoding" />
<ListPreference
android:defaultValue="1"
android:entries="@array/channels_text"
android:entryValues="@array/channels_values"
android:key="channels"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Aufnahmekanäle"
android:title="Mono/Stereo" />
<ListPreference
android:defaultValue="%s"
android:entries="@array/format_text"
android:entryValues="@array/format_values"
android:key="format"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="2015-11"
android:title="Format für Name" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="call"
android:summary="Stoppe Aufnahme bei Anrufannahme und setze nach Auflegen fort"
android:title="Pausieren während Telefonaten" />
<com.github.axet.androidlibrary.widgets.SilencePreferenceCompat
android:defaultValue="false"
android:key="silence"
android:summary="Aktiviere Audio-Profil \'Nicht Stören\' während Aufnahmen"
android:title="Ruhe-Modus" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="controls"
android:summary="Zeige Steuerelemente im Sperrbildschirm an"
android:title="Steuerelemente im Sperrbildschirm" />
<ListPreference
android:defaultValue="Theme_White"
android:entries="@array/themes_text"
android:entryValues="@array/themes_values"
android:key="theme"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Wähle App-Theme (dunkel / hell)"
android:title="App-Theme" />
</PreferenceScreen>

View file

@ -1,77 +0,0 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.github.axet.androidlibrary.widgets.StoragePathPreferenceCompat
android:defaultValue="Audio Recorder"
android:key="storage_path"
android:summary="/sdcard/some/"
android:title="Dossier de stockage" />
<ListPreference
android:defaultValue="16000"
android:entries="@array/sample_rate_text"
android:entryValues="@array/sample_rate_values"
android:key="sample_rate"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="44100"
android:title="Taux d'échantillonnage" />
<ListPreference
android:defaultValue="ogg"
android:entries="@array/encodings_text"
android:entryValues="@array/encodings_values"
android:key="encoding"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Formats de sortie (.wav, .m4a, ...)"
android:title="Encodage" />
<ListPreference
android:defaultValue="1"
android:entries="@array/channels_text"
android:entryValues="@array/channels_values"
android:key="channels"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Canaux d'enregistrements"
android:title="Mode" />
<ListPreference
android:defaultValue="%s"
android:entries="@array/format_text"
android:entryValues="@array/format_values"
android:key="format"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="2015-12-31 22:11:34"
android:title="Format de nommage" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="call"
android:summary="Arrêtez l'enregistrement lorsque vous répondez à un appel et se poursuit lorsque vous posez"
android:title="Mettre en pause durant les appels" />
<com.github.axet.androidlibrary.widgets.SilencePreferenceCompat
android:defaultValue="false"
android:key="silence"
android:summary="Mettre le téléphone en mode silencieux pendant l'enregistrement"
android:title="Mode Silence" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="controls"
android:summary="Montrez les contrôles quand le téléphone est vérrouillé"
android:title="Contrôles écran éteint" />
<ListPreference
android:defaultValue="Theme_White"
android:entries="@array/themes_text"
android:entryValues="@array/themes_values"
android:key="theme"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Appliquer le théme (Sombre | Blanc)"
android:title="Application du Theme" />
</PreferenceScreen>

View file

@ -1,77 +0,0 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.github.axet.androidlibrary.widgets.StoragePathPreferenceCompat
android:defaultValue="Audio Recorder"
android:key="storage_path"
android:summary="/sdcard/some/"
android:title="Salva file in ... " />
<ListPreference
android:defaultValue="16000"
android:entries="@array/sample_rate_text"
android:entryValues="@array/sample_rate_values"
android:key="sample_rate"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="44100"
android:title="Frequenza di campionamento" />
<ListPreference
android:defaultValue="ogg"
android:entries="@array/encodings_text"
android:entryValues="@array/encodings_values"
android:key="encoding"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Formato del file prodotto (.wav, .m4a, ...)"
android:title="Codifica" />
<ListPreference
android:defaultValue="1"
android:entries="@array/channels_text"
android:entryValues="@array/channels_values"
android:key="channels"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Numero di canali per la registrazione"
android:title="Canali" />
<ListPreference
android:defaultValue="%s"
android:entries="@array/format_text"
android:entryValues="@array/format_values"
android:key="format"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="2015-12-31 22:11:34"
android:title="Formato per il nome" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="call"
android:summary="Ferma la registrazione quando rispondi a chiamate e continua quando metti giù"
android:title="Pausa durante le chiamate" />
<com.github.axet.androidlibrary.widgets.SilencePreferenceCompat
android:defaultValue="false"
android:key="silence"
android:summary="Metti in cellulare in 'silenzioso' durante le registrazioni"
android:title="Silenzioso" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="controls"
android:summary="Mostra i controlli quando il cellulare è bloccato"
android:title="Controlli su schermo bloccato" />
<ListPreference
android:defaultValue="Theme_White"
android:entries="@array/themes_text"
android:entryValues="@array/themes_values"
android:key="theme"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Imposta il tema dell'applicazione (scuro / chiaro)"
android:title="Tema applicazione" />
</PreferenceScreen>

View file

@ -1,77 +0,0 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.github.axet.androidlibrary.widgets.StoragePathPreferenceCompat
android:defaultValue="Audio Recorder"
android:key="storage_path"
android:summary="/sdcard/some/"
android:title="ストレージのパス" />
<ListPreference
android:defaultValue="16000"
android:entries="@array/sample_rate_text"
android:entryValues="@array/sample_rate_values"
android:key="sample_rate"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="44100"
android:title="サンプルレート" />
<ListPreference
android:defaultValue="ogg"
android:entries="@array/encodings_text"
android:entryValues="@array/encodings_values"
android:key="encoding"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="出力ファイル形式 (.wav, .m4a, ...)"
android:title="エンコーディング" />
<ListPreference
android:defaultValue="1"
android:entries="@array/channels_text"
android:entryValues="@array/channels_values"
android:key="channels"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="録音チャンネル"
android:title="モード" />
<ListPreference
android:defaultValue="%s"
android:entries="@array/format_text"
android:entryValues="@array/format_values"
android:key="format"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="2015-11"
android:title="名前の書式" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="call"
android:summary="着信して通話をする間、録音を停止します"
android:title="着信時に一時停止" />
<com.github.axet.androidlibrary.widgets.SilencePreferenceCompat
android:defaultValue="false"
android:key="silence"
android:summary="録音中、電話を 'マナーモード' にします"
android:title="マナーモード" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="controls"
android:summary="電話がロックされた時にコントロールを表示します"
android:title="ロック画面コントロール" />
<ListPreference
android:defaultValue="Theme_White"
android:entries="@array/themes_text"
android:entryValues="@array/themes_values"
android:key="theme"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="アプリケーションのテーマを設定します (ダーク / ライト)"
android:title="アプリケーションのテーマ" />
</PreferenceScreen>

View file

@ -1,78 +0,0 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.github.axet.androidlibrary.widgets.StoragePathPreferenceCompat
android:defaultValue="Audio Recorder"
android:key="storage_path"
android:summary="/sdcard/alguma/pasta/"
android:title="Destino das gravações" />
<ListPreference
android:defaultValue="16000"
android:entries="@array/sample_rate_text"
android:entryValues="@array/sample_rate_values"
android:key="sample_rate"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="44100"
android:title="Taxa de amostragem" />
<ListPreference
android:defaultValue="ogg"
android:entries="@array/encodings_text"
android:entryValues="@array/encodings_values"
android:key="encoding"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Formato de saída do arquivo (.wav, .mp3, etc.)"
android:title="Codificação" />
<ListPreference
android:defaultValue="1"
android:entries="@array/channels_text"
android:entryValues="@array/channels_values"
android:key="channels"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Canais a gravar"
android:title="Modo" />
<ListPreference
android:defaultValue="%s"
android:entries="@array/format_text"
android:entryValues="@array/format_values"
android:key="format"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="2015-12-31 22:11:34"
android:title="Formato do nome de arquivo" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="call"
android:summary="e voltar a gravar quando a chamada for desligada"
android:title="Pausar durante chamadas" />
<com.github.axet.androidlibrary.widgets.SilencePreferenceCompat
android:defaultValue="false"
android:key="silence"
android:summary="Silenciar o aparelho durante a gravação"
android:title="Modo silencioso" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="controls"
android:summary="Mostrar controles quando a tela estiver bloqueada"
android:title="Controle da tela bloqueada" />
<ListPreference
android:defaultValue="Theme_White"
android:entries="@array/themes_text"
android:entryValues="@array/themes_values"
android:key="theme"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Definir o tema (claro ou escuro)"
android:title="Tema do app" />
</PreferenceScreen>

View file

@ -1,77 +0,0 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.github.axet.androidlibrary.widgets.StoragePathPreferenceCompat
android:defaultValue="Audio Recorder"
android:key="storage_path"
android:summary="/sdcard/some/"
android:title="Папка для хранения" />
<ListPreference
android:defaultValue="16000"
android:entries="@array/sample_rate_text"
android:entryValues="@array/sample_rate_values"
android:key="sample_rate"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="44100"
android:title="Частота записи" />
<ListPreference
android:defaultValue="ogg"
android:entries="@array/encodings_text"
android:entryValues="@array/encodings_values"
android:key="encoding"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Формат выходного файла (.wav, .m4a, ...)"
android:title="Кодировка" />
<ListPreference
android:defaultValue="1"
android:entries="@array/channels_text"
android:entryValues="@array/channels_values"
android:key="channels"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Режим записи"
android:title="Режим" />
<ListPreference
android:defaultValue="%s"
android:entries="@array/format_text"
android:entryValues="@array/format_values"
android:key="format"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="2015-12-31 22:11:34"
android:title="Имя нового файла" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="call"
android:summary="Останавливать запись на время разговора по телефону"
android:title="Пауза на время разговора" />
<com.github.axet.androidlibrary.widgets.SilencePreferenceCompat
android:defaultValue="true"
android:key="silence"
android:summary="Включать беззвучный режим на время записи"
android:title="Режим тишины" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="controls"
android:summary="Показывать панель управления когда телефон заблокирован"
android:title="Панель управления" />
<ListPreference
android:defaultValue="Theme_White"
android:entries="@array/themes_text"
android:entryValues="@array/themes_values"
android:key="theme"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Установить тему приложения (темная / светлая)"
android:title="Тема приложения" />
</PreferenceScreen>

View file

@ -1,77 +0,0 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.github.axet.androidlibrary.widgets.StoragePathPreferenceCompat
android:defaultValue="Audio Recorder"
android:key="storage_path"
android:summary="/sdcard/cesta/"
android:title="Priečinok s nahrávkami" />
<ListPreference
android:defaultValue="16000"
android:entries="@array/sample_rate_text"
android:entryValues="@array/sample_rate_values"
android:key="sample_rate"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="44100"
android:title="Vzorkovacia frekvencia" />
<ListPreference
android:defaultValue="ogg"
android:entries="@array/encodings_text"
android:entryValues="@array/encodings_values"
android:key="encoding"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Výstupný zvukový formát (.wav, .m4a, ...)"
android:title="Kódovanie" />
<ListPreference
android:defaultValue="1"
android:entries="@array/channels_text"
android:entryValues="@array/channels_values"
android:key="channels"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Zvukové kanály"
android:title="Režim" />
<ListPreference
android:defaultValue="%s"
android:entries="@array/format_text"
android:entryValues="@array/format_values"
android:key="format"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="2015-12-31 22:11:34"
android:title="Formát názvu súboru" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="call"
android:summary="Zastaví nahrávanie po prijatí hovoru a po jeho ukončení bude nahrávanie pokračovať"
android:title="Pozastaviť počas hovoru" />
<com.github.axet.androidlibrary.widgets.SilencePreferenceCompat
android:defaultValue="false"
android:key="silence"
android:summary="Prepnúť zariadenie do tichého režimu počas nahrávania"
android:title="Tichý režim" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="controls"
android:summary="Zobraziť ovládacie prvky na zamikacej obrazovke"
android:title="Tlačidlá na uzamikacej obrazovke" />
<ListPreference
android:defaultValue="Theme_White"
android:entries="@array/themes_text"
android:entryValues="@array/themes_values"
android:key="theme"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Farebná téma aplikácie (svetlá / tmavá)"
android:title="Téma" />
</PreferenceScreen>

View file

@ -4,7 +4,7 @@
android:defaultValue="Audio Recorder"
android:key="storage_path"
android:summary="/sdcard/some/"
android:title="Storage Path" />
android:title="@string/pref_storage_title" />
<ListPreference
android:defaultValue="16000"
@ -14,7 +14,7 @@
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="44100"
android:title="Sample Rate" />
android:title="@string/pref_rate_title" />
<ListPreference
android:defaultValue="ogg"
@ -23,8 +23,8 @@
android:key="encoding"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Output file formats (.wav, .m4a, ...)"
android:title="Encoding" />
android:summary="@string/pref_encoding_summary"
android:title="@string/pref_encoding_title" />
<ListPreference
android:defaultValue="1"
@ -33,8 +33,8 @@
android:key="channels"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Recording channels"
android:title="Mode" />
android:summary="@string/pref_mode_summary"
android:title="@string/pref_mode_title" />
<ListPreference
android:defaultValue="%s"
@ -44,25 +44,25 @@
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="2015-12-31 22:11:34"
android:title="Name Format" />
android:title="@string/pref_nameformat_title" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="call"
android:summary="Stop recording on answering and continue on hangup"
android:title="Pause During Calls" />
android:summary="@string/pref_pausecalls_summary"
android:title="@string/pref_pausecalls_title" />
<com.github.axet.androidlibrary.widgets.SilencePreferenceCompat
android:defaultValue="false"
android:key="silence"
android:summary="Put phone in 'silence mode' during recording"
android:title="Silence Mode" />
android:summary="@string/pref_silence_summary"
android:title="@string/pref_silence_title" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="controls"
android:summary="Show controls when phone is locked"
android:title="Lockscreen Controls" />
android:summary="@string/pref_lockscreen_summary"
android:title="@string/pref_lockscreen_title" />
<ListPreference
android:defaultValue="Theme_White"
@ -71,7 +71,7 @@
android:key="theme"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:summary="Set application theme (dark / light)"
android:title="Application Theme" />
android:summary="@string/pref_theme.summary"
android:title="@string/pref_theme_title" />
</PreferenceScreen>

View file

@ -2,7 +2,6 @@
To translate 'Audio Recorder' to your language you need to translate following files:
* [pref_general.xml](/app/src/main/res/xml/pref_general.xml)
* [strings.xml](/app/src/main/res/values/strings.xml)
* [about.html](/app/src/main/res/raw/about.html)