Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "org.invotek.apps.easyvsd_shell"
minSdkVersion 15
Expand Down
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:screenOrientation="landscape"
android:label="EasyVSD Shell"
android:windowSoftInputMode="adjustResize"
android:configChanges="keyboardHidden|keyboard|screenSize"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,10 @@ public Bitmap decodeBitmapFromResource(Resources res, int resId, int reqWidth, i
options.inInputShareable = true;
options.inJustDecodeBounds = false;
ret = BitmapFactory.decodeResource(res, resId, options);

if(reqWidth > 0 && reqHeight > 0)
ret = Bitmap.createScaledBitmap(ret, reqWidth, reqHeight, true);

}catch(Exception e){
ret = null;
}finally{
Expand Down
109 changes: 65 additions & 44 deletions app/src/main/java/org/invotek/apps/easyvsd_shell/MainActivity.java

Large diffs are not rendered by default.

Loading