diff --git a/app/build.gradle b/app/build.gradle index a75cb68..13d7fba 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 25 - buildToolsVersion "25.0.0" + buildToolsVersion "25.0.2" defaultConfig { applicationId "com.github.axet.audiorecorder" @@ -38,10 +38,10 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' - compile 'com.android.support:appcompat-v7:25.1.0' - compile 'com.android.support:support-v4:25.1.0' - compile 'com.android.support:design:25.1.0' + compile 'com.android.support:appcompat-v7:25.1.1' + compile 'com.android.support:support-v4:25.1.1' + compile 'com.android.support:design:25.1.1' compile 'com.google.android.gms:play-services-appindexing:9.8.0' compile 'org.apache.commons:commons-math3:3.6.1' - compile 'com.github.axet:android-library:1.6.9' // compile project(':android-library') + compile 'com.github.axet:android-library:1.7.4' // compile project(':android-library') } 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 ec6dbf7..7e9648e 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 @@ -631,7 +631,9 @@ public class MainActivity extends AppCompatActivity implements AbsListView.OnScr } } - public static final String[] PERMISSIONS = new String[]{Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}; + public static final String READ_EXTERNAL_STORAGE = "android.permission.READ_EXTERNAL_STORAGE"; // Manifest.permission.READ_EXTERNAL_STORAGE + + public static final String[] PERMISSIONS = new String[]{READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}; boolean permitted(String[] ss) { if (Build.VERSION.SDK_INT < 11) diff --git a/app/src/main/java/com/github/axet/audiorecorder/widgets/PitchView.java b/app/src/main/java/com/github/axet/audiorecorder/widgets/PitchView.java index 43ce578..c3816c3 100644 --- a/app/src/main/java/com/github/axet/audiorecorder/widgets/PitchView.java +++ b/app/src/main/java/com/github/axet/audiorecorder/widgets/PitchView.java @@ -137,10 +137,8 @@ public class PitchView extends ViewGroup { @Override void post(long delay) { if (delay < slow) { - Log.d(TAG, "fallback " + delay + " " + slow); this.fallback.run(); } else { - Log.d(TAG, "run " + delay + " " + slow); this.run.run(); } if (delay > 0) diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 45295e7..6ce0794 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -18,9 +18,7 @@ android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" android:theme="@style/AppThemeLight.AppBarOverlay" - app:layout_scrollFlags="scroll|enterAlways" app:popupTheme="@style/AppThemeLight.PopupOverlay" /> -