mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
fixed deprecated getDrawable call
This commit is contained in:
parent
7c9c4a4ca6
commit
3956a50855
1 changed files with 3 additions and 2 deletions
|
@ -48,6 +48,7 @@ import android.provider.OpenableColumns;
|
||||||
import android.support.v4.app.Fragment;
|
import android.support.v4.app.Fragment;
|
||||||
import android.support.v4.app.FragmentManager;
|
import android.support.v4.app.FragmentManager;
|
||||||
import android.support.v4.app.FragmentTransaction;
|
import android.support.v4.app.FragmentTransaction;
|
||||||
|
import android.support.v4.content.ContextCompat;
|
||||||
import android.support.v4.view.GravityCompat;
|
import android.support.v4.view.GravityCompat;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuInflater;
|
import android.view.MenuInflater;
|
||||||
|
@ -188,8 +189,8 @@ public class FileDisplayActivity extends HookActivity
|
||||||
|
|
||||||
mProgressBar = (ProgressBar) findViewById(R.id.progressBar);
|
mProgressBar = (ProgressBar) findViewById(R.id.progressBar);
|
||||||
mProgressBar.setIndeterminateDrawable(
|
mProgressBar.setIndeterminateDrawable(
|
||||||
getResources().getDrawable(
|
ContextCompat.getDrawable(this,
|
||||||
R.drawable.actionbar_progress_indeterminate_horizontal));
|
R.drawable.actionbar_progress_indeterminate_horizontal));
|
||||||
|
|
||||||
mDualPane = getResources().getBoolean(R.bool.large_land_layout);
|
mDualPane = getResources().getBoolean(R.bool.large_land_layout);
|
||||||
mLeftFragmentContainer = findViewById(R.id.left_fragment_container);
|
mLeftFragmentContainer = findViewById(R.id.left_fragment_container);
|
||||||
|
|
Loading…
Reference in a new issue