mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-15 18:13:57 +00:00
修复刷新时点击正在刷新会闪退问题
This commit is contained in:
parent
69ea5905d6
commit
abe731efba
Binary file not shown.
@ -99,6 +99,8 @@ public class MainActivity extends AppCompatActivity implements ReFlashListView.I
|
||||
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
||||
@Override
|
||||
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||
if (position <= 0) return;
|
||||
|
||||
LogVo logVo = logVos.get(position - 1);
|
||||
logDetail(logVo);
|
||||
}
|
||||
@ -107,6 +109,8 @@ public class MainActivity extends AppCompatActivity implements ReFlashListView.I
|
||||
listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
|
||||
@Override
|
||||
public boolean onItemLongClick(AdapterView<?> parent, View view, final int position, long id) {
|
||||
if (position <= 0) return false;
|
||||
|
||||
//定义AlertDialog.Builder对象,当长按列表项的时候弹出确认删除对话框
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
|
||||
builder.setMessage("确定删除?");
|
||||
|
Loading…
Reference in New Issue
Block a user