小米便签代码精读注释 #5

Merged
mvpola2e5 merged 1 commits from dev into master 2 years ago

@ -387,7 +387,7 @@ public class NotesPreferenceActivity extends PreferenceActivity {
Intent intent = new Intent(this, NotesListActivity.class); Intent intent = new Intent(this, NotesListActivity.class);
//开始创建活动 //开始创建活动
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent); startActivity(intent);//开始活动
return true; return true;
default: default:
return false;//若出现错误则返回 return false;//若出现错误则返回

Loading…
Cancel
Save