|
|
@@ -101,7 +101,7 @@ public class TaskActivity extends BaseActivity implements OnClickListener,Recogn
|
|
|
@ViewInject(R.id.voice_search_iv)
|
|
|
private ImageView voice_search_iv;
|
|
|
private int mCurrentPage = 1;
|
|
|
- private int mPosition ;
|
|
|
+ private int mPosition = -1;
|
|
|
private Handler handler = new Handler() {
|
|
|
@SuppressWarnings({"unchecked", "rawtypes"})
|
|
|
public void handleMessage(Message msg) {
|
|
|
@@ -885,8 +885,10 @@ public class TaskActivity extends BaseActivity implements OnClickListener,Recogn
|
|
|
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
|
if (requestCode == 0x17 || (requestCode == 0x20 && resultCode == 0x20)) {
|
|
|
// refreshing();
|
|
|
- real_List.remove(mPosition);
|
|
|
- adapter.notifyDataSetChanged();
|
|
|
+ if (mPosition != -1){
|
|
|
+ real_List.remove(mPosition);
|
|
|
+ adapter.notifyDataSetChanged();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|