From c9f3e4a32bfb2b7b6af856ee22d0cb2c9f191c29 Mon Sep 17 00:00:00 2001 From: Defend Date: Sun, 19 Feb 2017 00:42:29 +0300 Subject: [PATCH] Bug with imageView was fixed. But that func need another solution! --- app/app.iml | 16 ++++++++-------- .../defend/defdevteam/tstu/CabinetActivity.java | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/app.iml b/app/app.iml index 8b0c423..a16956c 100644 --- a/app/app.iml +++ b/app/app.iml @@ -66,14 +66,6 @@ - - - - - - - - @@ -82,6 +74,14 @@ + + + + + + + + diff --git a/app/src/main/java/ru/defend/defdevteam/tstu/CabinetActivity.java b/app/src/main/java/ru/defend/defdevteam/tstu/CabinetActivity.java index 7ab544e..2d4a9a7 100644 --- a/app/src/main/java/ru/defend/defdevteam/tstu/CabinetActivity.java +++ b/app/src/main/java/ru/defend/defdevteam/tstu/CabinetActivity.java @@ -293,11 +293,11 @@ public class CabinetActivity extends AppCompatActivity Log.e("Error", e.getMessage()); e.printStackTrace(); } - if(mIcon11.getWidth() > 4096 || mIcon11.getHeight() > 4096) { + if(mIcon11.getWidth() > 3000 || mIcon11.getHeight() > 3000) { mIcon11 = Bitmap.createScaledBitmap( mIcon11, - mIcon11.getWidth()/2, - mIcon11.getHeight()/2, + mIcon11.getWidth()/4, + mIcon11.getHeight()/4, false ); }