增加资源探查

This commit is contained in:
sonichy
2022-07-13 22:15:37 +08:00
parent 9c8fbad7cc
commit 00972a2b46
6 changed files with 67 additions and 37 deletions

View File

@@ -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 {