Skip to content

Commit

Permalink
Fix Glide init position
Browse files Browse the repository at this point in the history
  • Loading branch information
zjn0505 committed Oct 14, 2018
1 parent cfa2328 commit e550be7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
setContentView(R.layout.activity_image_detail);
ButterKnife.bind(this);
glide = Glide.with(this);
final String url = getIntent().getStringExtra(KEY_URL);
index = (int) getIntent().getLongExtra(KEY_ID, 0L);
showTitle = getIntent().getBooleanExtra(KEY_SHOW_TITLE, false);
Expand Down Expand Up @@ -148,7 +149,6 @@ public void onScaleChanged(float newScale, int origin) {
}
});
}
glide = Glide.with(this);
if (BuildConfig.DEBUG) {
photoView.setOnLongClickListener(ignored -> {
bigImageView.showImage(Uri.parse(url));
Expand Down

0 comments on commit e550be7

Please sign in to comment.