diff --git a/app/build.gradle b/app/build.gradle index fc7f926..41146e4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -57,5 +57,5 @@ android { dependencies { testImplementation 'junit:junit:4.12' - implementation 'com.github.axet:android-audio-library:1.0.145' // implementation project(':android-audio-library') + implementation 'com.github.axet:android-audio-library:1.0.146' // implementation project(':android-audio-library') } diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 32e982a..e9caf63 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,31 +1 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in /Users/axet/Library/Android/sdk/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the proguardFiles -# directive in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -dontobfuscate - --keep class com.github.axet.vorbisjni.Vorbis {*;} --keep class com.github.axet.lamejni.Lame {*;} --keep class com.github.axet.opusjni.Opus {*;} - --keep class com.github.axet.androidlibrary.widgets.SearchView {*;} - --dontwarn net.sourceforge.javaflacencoder.** --dontwarn com.jssrc.resample.** --dontwarn org.apache.commons.** --dontwarn org.slf4j.** --dontwarn de.innosystec.unrar.** \ No newline at end of file diff --git a/app/src/main/java/com/github/axet/audiorecorder/activities/MainActivity.java b/app/src/main/java/com/github/axet/audiorecorder/activities/MainActivity.java index 3caa168..c6fd13f 100644 --- a/app/src/main/java/com/github/axet/audiorecorder/activities/MainActivity.java +++ b/app/src/main/java/com/github/axet/audiorecorder/activities/MainActivity.java @@ -89,6 +89,12 @@ public class MainActivity extends AppCompatThemeActivity { list = (ListView) findViewById(R.id.list); list.setEmptyView(findViewById(R.id.empty_list)); recordings = new Recordings(this, list) { + @Override + public boolean getPrefCall() { + final SharedPreferences shared = PreferenceManager.getDefaultSharedPreferences(getContext()); + return shared.getBoolean(AudioApplication.PREFERENCE_CALL, false); + } + @Override public void showDialog(AlertDialog.Builder e) { AlertDialog d = e.create();