diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java
index 184fce9f..5787c8f8 100644
--- a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java
+++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleImagesPagerActivity.java
@@ -25,8 +25,6 @@ import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.assist.FailReason;
import com.nostra13.universalimageloader.core.display.FadeInBitmapDisplayer;
-import com.nostra13.universalimageloader.core.imageaware.ImageAware;
-import com.nostra13.universalimageloader.core.imageaware.ImageViewAware;
import com.nostra13.universalimageloader.core.listener.ImageLoadingListener;
import com.viewpagerindicator.UnderlinePageIndicator;
@@ -85,12 +83,12 @@ public class ArticleImagesPagerActivity extends CommonActivity {
.displayer(new FadeInBitmapDisplayer(200))
.build();
- ImageAware imageAware = new ImageViewAware(imgView, false);
+ //ImageAware imageAware = new ImageViewAware(imgView, false);
final ProgressBar progressBar = (ProgressBar) view.findViewById(R.id.flavor_image_progress);
final View errorMessage = view.findViewById(R.id.flavor_image_error);
- ImageLoader.getInstance().displayImage(url, imageAware, options, new ImageLoadingListener() {
+ ImageLoader.getInstance().displayImage(url, imgView, options, new ImageLoadingListener() {
@Override
public void onLoadingStarted(String s, View view) {
@@ -156,7 +154,7 @@ public class ArticleImagesPagerActivity extends CommonActivity {
m_prefs = PreferenceManager
.getDefaultSharedPreferences(getApplicationContext());
- setTheme(R.style.DarkTheme);
+ setAppTheme(m_prefs);
super.onCreate(savedInstanceState);
@@ -240,7 +238,6 @@ public class ArticleImagesPagerActivity extends CommonActivity {
return onContextItemSelected(item); // this is really bad :()
}
-
@Override
public boolean onContextItemSelected(android.view.MenuItem item) {
ViewPager pager = (ViewPager) findViewById(R.id.article_images_pager);
diff --git a/org.fox.ttrss/src/main/res/layout/article_images_image.xml b/org.fox.ttrss/src/main/res/layout/article_images_image.xml
index 41503b65..c5adadc6 100644
--- a/org.fox.ttrss/src/main/res/layout/article_images_image.xml
+++ b/org.fox.ttrss/src/main/res/layout/article_images_image.xml
@@ -18,13 +18,12 @@
android:layout_gravity="center"
android:id="@+id/flavor_image_progress" />
-
+ android:scaleType="fitCenter" />
+
\ No newline at end of file
diff --git a/org.fox.ttrss/src/main/res/layout/article_images_pager.xml b/org.fox.ttrss/src/main/res/layout/article_images_pager.xml
index 0318cdc3..92bd9518 100644
--- a/org.fox.ttrss/src/main/res/layout/article_images_pager.xml
+++ b/org.fox.ttrss/src/main/res/layout/article_images_pager.xml
@@ -1,8 +1,8 @@
+ android:layout_height="fill_parent">
/*
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
@@ -11,8 +11,9 @@
+ android:layout_alignParentTop="true"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent" >