Created
June 20, 2014 16:48
-
-
Save layerlre/f4c185942cf32eda6a34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String validfrom = ""; | |
Date startDate = new Date(Long.valueOf(App.getReward().getPeriodStartDate().substring(6, 19))); | |
Date endDate = new Date(Long.valueOf(App.getReward().getPeriodEndDate().substring(6, 19))); | |
Date dateNow = new Date(); | |
if (App.getReward().getPeriodStartType()==0) { | |
validfrom += "Unlimit"; | |
}else { | |
validfrom += formatter.format(startDate); | |
} | |
validfrom += " to "; | |
if (App.getReward().getPeriodEndType()==0) { | |
validfrom += "Unlimit"; | |
}else { | |
validfrom += formatter.format(endDate); | |
} | |
((TextView) view.findViewById(R.id.validfrom)).setText(Html.fromHtml("<b>"+lm.getText(AppContentKeys.REDEEM_REWARDDETAIL_VALID)+"</b> "+validfrom)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment