修复可展开收藏夹点击崩溃
This commit is contained in:
parent
1a13cf5e82
commit
6078b278fb
|
@ -48,7 +48,7 @@ public class FavoriteActivity1 extends Activity {
|
|||
expandableListView.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {
|
||||
@Override
|
||||
public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {
|
||||
String url = ((TextView) v.findViewById(R.id.group_count)).getText().toString();
|
||||
String url = ((TextView) v.findViewById(R.id.website)).getText().toString();
|
||||
Intent intent = new Intent(FavoriteActivity1.this, MainActivity.class);
|
||||
intent.putExtra("url", url);
|
||||
setResult(RESULT_OK, intent);
|
||||
|
@ -343,9 +343,9 @@ public class FavoriteActivity1 extends Activity {
|
|||
values.put("title", stitle);
|
||||
values.put("category", spinner.getSelectedItem().toString());
|
||||
int i = db.update(DBHelper.TableName, values, "_id = " + sid, null);
|
||||
if (i != -1)
|
||||
if (i != -1) {
|
||||
onCreate(null);
|
||||
else
|
||||
} else
|
||||
Toast.makeText(getApplicationContext(), "修改失败", Toast.LENGTH_SHORT).show();
|
||||
try {
|
||||
//关闭
|
||||
|
|
Loading…
Reference in New Issue