Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4455)

Issue 90250043: PS fixes

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by prannoysircar0325
Modified:
10 years ago
Reviewers:
mail2coolgarg
CC:
dev_shoppoke.com
Base URL:
https://immpandroid.unfuddle.com/svn/immpandroid_android/
Visibility:
Public.

Description

PS fixes

Patch Set 1 #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -7 lines) Patch
M spfaq/.classpath View 1 chunk +1 line, -0 lines 0 comments Download
M spfaq/AndroidManifest.xml View 2 chunks +16 lines, -0 lines 1 comment Download
M spfaq/project.properties View 1 chunk +2 lines, -2 lines 0 comments Download
M spfaq/res/values/strings.xml View 2 chunks +2 lines, -1 line 0 comments Download
M spfaq/src/app/shoppoke/faq/activities/dashboard/Dashboard2Activity.java View 1 chunk +1 line, -0 lines 0 comments Download
M spfaq/src/app/shoppoke/faq/qa/StorePhone.java View 2 chunks +6 lines, -2 lines 1 comment Download
A spfaq/src/app/shoppoke/faq/receiver/PhoneCallReceiver.java View 1 chunk +59 lines, -0 lines 4 comments Download
A spfaq/src/app/shoppoke/faq/receiver/SmsPhoneReceiverHandler.java View 1 chunk +65 lines, -0 lines 3 comments Download
A spfaq/src/app/shoppoke/faq/receiver/SmsReceiver.java View 1 chunk +60 lines, -0 lines 4 comments Download
M spfaq/src/app/shoppoke/faq/storedetail/PopularQuestionHandler.java View 1 chunk +0 lines, -2 lines 0 comments Download
M spfaq/src/app/shoppoke/faq/storedetail/StoreDetailActivity.java View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 1
mail2coolgarg
10 years ago (2014-04-22 13:29:49 UTC) #1
fix comments. and go through carefully.
If contact number is search locally successfully during call receive, show
notification

if a sms is received, dont search call locally, just hit the api. and show
notification if api return Sro.

https://codereview.appspot.com/90250043/diff/1/spfaq/AndroidManifest.xml
File spfaq/AndroidManifest.xml (right):

https://codereview.appspot.com/90250043/diff/1/spfaq/AndroidManifest.xml#newc...
spfaq/AndroidManifest.xml:56: </uses-permission>
</uses-permission>, change it to similar to other closing tags.

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/qa/...
File spfaq/src/app/shoppoke/faq/qa/StorePhone.java (right):

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/qa/...
spfaq/src/app/shoppoke/faq/qa/StorePhone.java:82: 1000, null, null, null, "
phone = '" + phoneNumber + "'");
change this 1000 to 1.

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
File spfaq/src/app/shoppoke/faq/receiver/PhoneCallReceiver.java (right):

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/PhoneCallReceiver.java:37: public Context
pcontext;
make both member private.

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/PhoneCallReceiver.java:47: StorePhone
localContactList= StorePhone.getStorePhone(pcontext,
localContactList => storePhone

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/PhoneCallReceiver.java:51: if (state == 1 &&
StringUtil.isNullOrEmpty(localContactList.phone)
this if logic is incorrect.

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/PhoneCallReceiver.java:53:
smsPhoneReceiverHandler.request(incomingNumber);
don't call smsPhoneReceiverHandler. It does not make any sense. write a common
class to create notification. and use that here.

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
File spfaq/src/app/shoppoke/faq/receiver/SmsPhoneReceiverHandler.java (right):

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsPhoneReceiverHandler.java:21: public
Context context;
make it private.

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsPhoneReceiverHandler.java:31:
webRequestTask.AddParam("shortcode", incomingNumber);
change incomingNumber to shortCode.

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsPhoneReceiverHandler.java:39: if (item
==null) {
format it properly

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
File spfaq/src/app/shoppoke/faq/receiver/SmsReceiver.java (right):

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsReceiver.java:26: String phoneNumber =
null;
Change phoneNumber to shortCode

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsReceiver.java:28: SmsPhoneReceiverHandler
smsPhoneReceiverHandler;
don't declare it here.

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsReceiver.java:36: for (int i = 0; i <
pdusObj.length; i++) {
why are you making a loop over multiple items and over writing it again and
again

https://codereview.appspot.com/90250043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsReceiver.java:49: StorePhone
localContactList = StorePhone.getStorePhone(context,
Why are you fetching contact here. I am raising the same question again as in my
previous review? you have not answered it there as well.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b