I am learning Google IO 2012 code
In one of the actions (HomeActivity.java) they do the following:
void onCreate(Bundle savedInstance) { if(someCondition) { // start some other activity here finish(); // finish this activity } if(isFinishing()) return; // More code here }
I wonder why they do not put return immediately after finish() , but instead checking isFinishing() ?
source share