Panagiotis Triantafyllou

sm pass crash fix

......@@ -57,7 +57,7 @@ public class MarketPassActivity extends Activity implements View.OnClickListener
private TextView mFontHeader, mPassHeader, mPassSubtitle, mTvBarcode, mTvPassCount, mTvButtonMap;
private LinearLayout mLlMap, mLlParentLogosView;
private boolean mMapPressed = false, mPassInfoPressed = false;
private MarketPassDetailsModel mMarketPassDetails = new MarketPassDetailsModel();
private MarketPassDetailsModel mMarketPassDetails;
private RelativeLayout mPbLoading;
private AlertDialog mAlertDialog;
private CardView mCvMarketDetails;
......@@ -156,7 +156,7 @@ public class MarketPassActivity extends Activity implements View.OnClickListener
sBuilder.append(String.format(getString(R.string.cos_market_pass_coupons_title), String.valueOf(mMarketPassDetails.getTotalDiscount())));
Typeface typefaceBold = ResourcesCompat.getFont(this, R.font.peridot_bold);
CustomTypefaceSpan typefaceBoldSpan = new CustomTypefaceSpan(typefaceBold);
sBuilder.setSpan(typefaceBoldSpan, 31, 31 + passValue.length() + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
sBuilder.setSpan(typefaceBoldSpan, 29, 30 + passValue.length() + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
mTvPassCount.setText(sBuilder, TextView.BufferType.SPANNABLE);
}
......