File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
3
package =" com.iiordanov.bVNC" android : installLocation =" auto"
4
- android : versionCode =" 3700 " android : versionName =" v3.7.0 " >
4
+ android : versionCode =" 3710 " android : versionName =" v3.7.1 " >
5
5
6
6
<uses-sdk android : minSdkVersion =" 8" android : targetSdkVersion =" 10" ></uses-sdk >
7
7
<uses-permission android : name =" android.permission.INTERNET" ></uses-permission >
Original file line number Diff line number Diff line change @@ -314,13 +314,20 @@ public void onClick(View v) {
314
314
}
315
315
316
316
317
+ @ SuppressWarnings ("deprecation" )
317
318
private void setKeyStowDrawableAndVisibility () {
318
319
Drawable replacer = null ;
319
320
if (layoutKeys .getVisibility () == View .GONE )
320
321
replacer = getResources ().getDrawable (R .drawable .showkeys );
321
322
else
322
323
replacer = getResources ().getDrawable (R .drawable .hidekeys );
323
- keyStow .setBackground (replacer );
324
+
325
+ int sdk = android .os .Build .VERSION .SDK_INT ;
326
+ if (sdk < android .os .Build .VERSION_CODES .JELLY_BEAN ) {
327
+ keyStow .setBackgroundDrawable (replacer );
328
+ } else {
329
+ keyStow .setBackground (replacer );
330
+ }
324
331
325
332
if (connection .getExtraKeysToggleType () == Constants .EXTRA_KEYS_OFF )
326
333
keyStow .setVisibility (View .GONE );
You can’t perform that action at this time.
0 commit comments