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