Panagiotis Triantafyllou

sm pass crash fix

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