增加资源探查
This commit is contained in:
@@ -243,6 +243,7 @@ public class FavoriteActivity extends Activity {
|
||||
builder.create().show();
|
||||
break;
|
||||
case 4:
|
||||
position = listView.getFirstVisiblePosition();
|
||||
int id = Integer.parseInt(((TextView) menuInfo.targetView.findViewById(R.id.id)).getText().toString());
|
||||
DBHelper helper = new DBHelper(getApplicationContext());
|
||||
helper.del(id);
|
||||
@@ -292,7 +293,7 @@ public class FavoriteActivity extends Activity {
|
||||
});
|
||||
listView.setAdapter(adapter);
|
||||
Log.e(Thread.currentThread().getStackTrace()[2] + "", position + "");
|
||||
//listView.setSelection(position);
|
||||
listView.setSelection(position);
|
||||
}
|
||||
|
||||
class EditChangedListener implements TextWatcher {
|
||||
|
||||
Reference in New Issue
Block a user