Demo entry 1072663

aaafvv

   

Submitted by dd on Jan 14, 2015 at 09:01
Language: Java. Code size: 405 Bytes.

offerHelper.setOfferStatusChangeLisener(new OfferHelper.OfferStatusChangeListener() {

			@Override
			public void onChange(Offer offer) {
				obtainBtn.setText(offer.getStatusText());
				if(offer.getStatus() == Offer.OFFER_STATUS_ENABLE || offer.getStatus() == Offer.OFFER_STATUS_REACHED){
					obtainBtn.setEnabled(true);
				}else{
					obtainBtn.setEnabled(false);
				}
				
			}

		});

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).