Skip to content

Commit

Permalink
Merge branch 'release/4.8' of github.com:wordpress-mobile/WordPress-A…
Browse files Browse the repository at this point in the history
…ndroid into release/4.8
  • Loading branch information
maxme committed Dec 17, 2015
2 parents 51c8bd5 + 763fda9 commit 697eb2b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ private void startWebActivity(String themeId, ThemeWebActivity.ThemeWebActivityT
String toastText = getString(R.string.no_network_message);

if (NetworkUtils.isNetworkAvailable(this)) {
if (mCurrentTheme != null) {
if (mCurrentTheme != null && (themeId != null || !themeId.isEmpty())) {
boolean isCurrentTheme = mCurrentTheme.getId().equals(themeId);
Map<String, Object> themeProperties = new HashMap<>();
themeProperties.put(THEME_ID, themeId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,18 @@
package org.wordpress.android.util.helpers;

import android.os.Parcel;
import android.text.ParcelableSpan;
import android.text.TextPaint;
import android.text.style.CharacterStyle;
import android.text.style.UpdateAppearance;
import android.text.style.UnderlineSpan;

public class WPUnderlineSpan extends CharacterStyle
implements UpdateAppearance, ParcelableSpan {
/**
* WPUnderlineSpan is used as an alternative class to UnderlineSpan. UnderlineSpan is used by EditText auto
* correct, so it can get mixed up with our formatting.
*/
public class WPUnderlineSpan extends UnderlineSpan {
public WPUnderlineSpan() {
super();
}

public WPUnderlineSpan(Parcel src) {
}

public int getSpanTypeId() {
return 6;
}

public int describeContents() {
return 0;
}

public void writeToParcel(Parcel dest, int flags) {
}

@Override
public void updateDrawState(TextPaint ds) {
ds.setUnderlineText(true);
super(src);
}
}

0 comments on commit 697eb2b

Please sign in to comment.