Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
7269dd5b5f
3 changed files with 14 additions and 16 deletions
|
@ -18,7 +18,7 @@ apply plugin: 'com.android.application'
|
|||
|
||||
android {
|
||||
compileSdkVersion 26
|
||||
buildToolsVersion "26.0.0"
|
||||
buildToolsVersion "26.0.1"
|
||||
|
||||
signingConfigs {
|
||||
development {
|
||||
|
@ -385,10 +385,10 @@ dependencies {
|
|||
// compile project(':eclipse-compile:design')
|
||||
// compile project(':eclipse-compile:cardview')
|
||||
// compile project(':eclipse-compile:gridlayout')
|
||||
compile 'com.android.support:gridlayout-v7:25.+'
|
||||
compile 'com.android.support:cardview-v7:25.+'
|
||||
compile 'com.android.support:appcompat-v7:25.+'
|
||||
compile 'com.android.support:design:25.+'
|
||||
compile 'com.android.support:gridlayout-v7:26.1.0'
|
||||
compile 'com.android.support:cardview-v7:26.1.0'
|
||||
compile 'com.android.support:appcompat-v7:26.1.0'
|
||||
compile 'com.android.support:design:26.1.0'
|
||||
compile fileTree(include: ['*.jar'], exclude: ['QtAndroid-bundled.jar', 'QtAndroidAccessibility-bundled.jar', 'OsmAndCore_android.jar', 'OsmAndCore_wrapper.jar', 'android-support-multidex.jar'], dir: 'libs')
|
||||
legacyCompile "net.osmand:OsmAndCore_android:0.1-SNAPSHOT@jar"
|
||||
qtcoredebugCompile "net.osmand:OsmAndCore_androidNativeDebug:0.1-SNAPSHOT@aar"
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
package net.osmand.plus.audionotes;
|
||||
|
||||
import android.animation.ValueAnimator;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.graphics.Matrix;
|
||||
import android.support.v4.animation.AnimatorCompatHelper;
|
||||
import android.support.v4.animation.AnimatorUpdateListenerCompat;
|
||||
import android.support.v4.animation.ValueAnimatorCompat;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.support.v4.view.ViewCompat;
|
||||
import android.util.DisplayMetrics;
|
||||
|
@ -25,7 +23,7 @@ public class AudioVideoNoteRecordingMenuFullScreen extends AudioVideoNoteRecordi
|
|||
|
||||
protected ImageView imageview;
|
||||
protected ProgressBar progressBar;
|
||||
protected ValueAnimatorCompat animatorCompat;
|
||||
protected ValueAnimator animatorCompat;
|
||||
|
||||
public AudioVideoNoteRecordingMenuFullScreen(AudioVideoNotesPlugin plugin, double lat, double lon) {
|
||||
super(plugin, lat, lon);
|
||||
|
@ -133,14 +131,14 @@ public class AudioVideoNoteRecordingMenuFullScreen extends AudioVideoNoteRecordi
|
|||
ViewCompat.setAlpha(progressBar, 1f);
|
||||
progressBar.setVisibility(View.VISIBLE);
|
||||
|
||||
animatorCompat = AnimatorCompatHelper.emptyValueAnimator();
|
||||
animatorCompat = ValueAnimator.ofInt(0);
|
||||
final Interpolator interpolator = new LinearInterpolator();
|
||||
animatorCompat.setDuration(duration);
|
||||
animatorCompat.setTarget(progressBar);
|
||||
animatorCompat.addUpdateListener(new AnimatorUpdateListenerCompat() {
|
||||
animatorCompat.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
|
||||
@Override
|
||||
public void onAnimationUpdate(ValueAnimatorCompat animation) {
|
||||
float fraction = interpolator.getInterpolation(animation.getAnimatedFraction());
|
||||
public void onAnimationUpdate(ValueAnimator valueAnimator) {
|
||||
float fraction = interpolator.getInterpolation(valueAnimator.getAnimatedFraction());
|
||||
progressBar.setProgress((int)(500 * fraction));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
|
|||
|
||||
android {
|
||||
compileSdkVersion 26
|
||||
buildToolsVersion "26.0.0"
|
||||
buildToolsVersion "26.0.1"
|
||||
|
||||
dexOptions {
|
||||
jumboMode true
|
||||
|
@ -110,8 +110,8 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
compile project(path: ':OsmAnd-java', configuration: 'android')
|
||||
compile 'com.android.support:appcompat-v7:25.+'
|
||||
compile 'com.android.support:design:25.+'
|
||||
compile 'com.android.support:appcompat-v7:26.1.0'
|
||||
compile 'com.android.support:design:26.1.0'
|
||||
compile fileTree(dir: "libs", include: ["*.jar"])
|
||||
compile "net.osmand:OsmAndCore_android:0.1-SNAPSHOT@aar"
|
||||
debugCompile "net.osmand:OsmAndCore_androidNativeRelease:0.1-SNAPSHOT@aar"
|
||||
|
|
Loading…
Reference in a new issue