mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-08 12:18:07 -05:00
AddServerActivity: Add up navigation.
This commit is contained in:
parent
7c27b09298
commit
da78ea15d0
@ -46,6 +46,7 @@ import android.widget.EditText;
|
||||
import android.widget.Spinner;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.actionbarsherlock.app.ActionBar;
|
||||
import com.actionbarsherlock.app.SherlockActivity;
|
||||
import com.actionbarsherlock.view.Menu;
|
||||
import com.actionbarsherlock.view.MenuInflater;
|
||||
@ -79,6 +80,9 @@ public class AddServerActivity extends SherlockActivity implements OnClickListen
|
||||
|
||||
setContentView(R.layout.serveradd);
|
||||
|
||||
ActionBar actionBar = getSupportActionBar();
|
||||
actionBar.setDisplayHomeAsUpEnabled(true);
|
||||
|
||||
authentication = new Authentication();
|
||||
aliases = new ArrayList<String>();
|
||||
channels = new ArrayList<String>();
|
||||
@ -179,6 +183,10 @@ public class AddServerActivity extends SherlockActivity implements OnClickListen
|
||||
case R.id.save:
|
||||
save();
|
||||
return true;
|
||||
|
||||
case android.R.id.home:
|
||||
finish();
|
||||
break;
|
||||
}
|
||||
|
||||
return super.onMenuItemSelected(featureId, item);
|
||||
|
Loading…
Reference in New Issue
Block a user