From 3956a50855fa04621cf2ba105e1a716e9a501c08 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Wed, 5 Aug 2015 12:58:40 +0200 Subject: [PATCH] fixed deprecated getDrawable call --- .../owncloud/android/ui/activity/FileDisplayActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java index 4c91cd6a69..949ddc39f5 100644 --- a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -48,6 +48,7 @@ import android.provider.OpenableColumns; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; +import android.support.v4.content.ContextCompat; import android.support.v4.view.GravityCompat; import android.view.Menu; import android.view.MenuInflater; @@ -188,8 +189,8 @@ public class FileDisplayActivity extends HookActivity mProgressBar = (ProgressBar) findViewById(R.id.progressBar); mProgressBar.setIndeterminateDrawable( - getResources().getDrawable( - R.drawable.actionbar_progress_indeterminate_horizontal)); + ContextCompat.getDrawable(this, + R.drawable.actionbar_progress_indeterminate_horizontal)); mDualPane = getResources().getBoolean(R.bool.large_land_layout); mLeftFragmentContainer = findViewById(R.id.left_fragment_container);