我有一台Redhat机器,这是我的远程机器。在那里,有一条线我必须替换:
server 0.rhel.pool.ntp.org iburst
到
#server 0.rhel.pool.ntp.org iburst
我尝试过使用替换模块,但我做错了。怎么做??
答案 0 :(得分:1)
使用@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater menuInflater = getMenuInflater();
menuInflater.inflate(R.menu.main_menu, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
infoDialogFragment.aboutMenuItem(this);
return false;
}
@Override
protected void onPostCreate(@Nullable Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState);
actionBarDrawerToggle.syncState();
}
private void setNavigationDrawer() {
navigationView.setNavigationItemSelectedListener(menuItem -> {
});
return false;
}
replace