diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-11-15 14:57:10 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-11-15 14:57:10 +0400 |
| commit | f2dde1362b07a21d5778cf8d704bd44460977683 (patch) | |
| tree | 573a5466ca286d4c7ff933b00ef48adbb0635381 /src/org/fox/ttrss/CommonActivity.java | |
| parent | 4ab63ea6b8480551c371b50cf242b5ac1a9bf6a5 (diff) | |
replace integer android version numbers with version codes
disable webview_accel preference on 2.3
target sdk 19
Diffstat (limited to 'src/org/fox/ttrss/CommonActivity.java')
| -rw-r--r-- | src/org/fox/ttrss/CommonActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/fox/ttrss/CommonActivity.java b/src/org/fox/ttrss/CommonActivity.java index b417d25a..ad15b0cc 100644 --- a/src/org/fox/ttrss/CommonActivity.java +++ b/src/org/fox/ttrss/CommonActivity.java @@ -155,7 +155,7 @@ public class CommonActivity extends SherlockFragmentActivity { @SuppressLint({ "NewApi", "ServiceCast" }) @SuppressWarnings("deprecation") public void copyToClipboard(String str) { - if (android.os.Build.VERSION.SDK_INT < 11) { + if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB) { android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(CLIPBOARD_SERVICE); clipboard.setText(str); } else { @@ -196,7 +196,7 @@ public class CommonActivity extends SherlockFragmentActivity { protected int getScreenWidthInPixel() { Display display = getWindowManager().getDefaultDisplay(); - if (android.os.Build.VERSION.SDK_INT >= 13) { + if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB_MR2) { Point size = new Point(); display.getSize(size); int width = size.x; |