Fixed action related null pointer
closes #100 Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -106,7 +106,9 @@ public class ListActivity extends Activity implements OnItemClickListener, OnCli
|
||||
break;
|
||||
}
|
||||
|
||||
if(ListActivity.this.getIntent().getAction().equals(ACTION_NEW_RINGER))
|
||||
final String action = ListActivity.this.getIntent().getAction();
|
||||
if(action != null)
|
||||
if(action.equals(ACTION_NEW_RINGER))
|
||||
finish();
|
||||
else
|
||||
ListActivity.this.mListView.post(new Runnable(){
|
||||
@@ -185,6 +187,7 @@ public class ListActivity extends Activity implements OnItemClickListener, OnCli
|
||||
if(!this.getIntent().hasExtra(NO_SPLASH))
|
||||
showSplashScreen();
|
||||
|
||||
if(action != null)
|
||||
if(action.equals(ACTION_NEW_RINGER))
|
||||
startActivityForResult(new Intent(this, RingerInformationActivity.class), ACTIVITY_CREATE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user