diff options
author | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-02-26 22:26:40 +0530 |
---|---|---|
committer | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-02-26 22:26:40 +0530 |
commit | 99ff9d2340689e1ebc274e463c86af0a03806491 (patch) | |
tree | 7b3071c21dab1d026adfd5462ceaea31651c029e /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/FormattingUtils.java | |
parent | ec353b0c390f7b3f45b950171e56c6ddcd0a9607 (diff) | |
parent | 1210a80a96d9f862829ac1122e94b68fe8b8b5d7 (diff) | |
download | open-keychain-99ff9d2340689e1ebc274e463c86af0a03806491.tar.gz open-keychain-99ff9d2340689e1ebc274e463c86af0a03806491.tar.bz2 open-keychain-99ff9d2340689e1ebc274e463c86af0a03806491.zip |
merged dialog
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/FormattingUtils.java')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/FormattingUtils.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/FormattingUtils.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/FormattingUtils.java index 3f84bf490..eb5c3df45 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/FormattingUtils.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/FormattingUtils.java @@ -24,18 +24,12 @@ import android.text.style.StrikethroughSpan; public class FormattingUtils { - public static SpannableStringBuilder strikeOutText(CharSequence text) { - SpannableStringBuilder sb = new SpannableStringBuilder(text); - sb.setSpan(new StrikethroughSpan(), 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); - return sb; - } - public static int dpToPx(Context context, int dp) { - return (int) ((dp * context.getResources().getDisplayMetrics().density) + 0.5); + return (int) ((dp * context.getResources().getDisplayMetrics().density) + 0.5f); } public static int pxToDp(Context context, int px) { - return (int) ((px / context.getResources().getDisplayMetrics().density) + 0.5); + return (int) ((px / context.getResources().getDisplayMetrics().density) + 0.5f); } } |