Closed beilly closed 8 years ago
Hi @shibenli there is no difference between:
boolean notifyForDescendents = true;
contentResolver.registerContentObserver(smsUri, notifyForDescendents, smsObserver);
and
contentResolver.registerContentObserver(smsUri, true, smsObserver);
We used to extract the true hardcoded values to local variables to improve the code readability.
Is this the answer to your questions?
@pedrovgs , thank you very much.That can improve the "true" means function,and it's highly readable code
boolean notifyForDescendents = true; contentResolver.registerContentObserver(smsUri, notifyForDescendents, smsObserver); what is different to “contentResolver.registerContentObserver(smsUri, true, smsObserver); ”?and you have used many in your code...