Skip to content
Snippets Groups Projects
Commit 613ba60b authored by Alexandre Lision's avatar Alexandre Lision Committed by Alexandre Lision
Browse files

accounts: remove duplicated button

The account management screen already provide a add button, adding
another in the overflow menu is not necessary

Tuleap: #694
Change-Id: I848bec45a87b6ada037252890c45a1a625444519
parent e36b9cf1
No related branches found
No related tags found
No related merge requests found
...@@ -93,10 +93,8 @@ public class AccountsManagementFragment extends Fragment implements HomeActivity ...@@ -93,10 +93,8 @@ public class AccountsManagementFragment extends Fragment implements HomeActivity
@Override @Override
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
Log.d(TAG, "Create Account Management Fragment");
Log.i(TAG, "Create Account Management Fragment");
mAccountsAdapter = new AccountsAdapter(getActivity()); mAccountsAdapter = new AccountsAdapter(getActivity());
this.setHasOptionsMenu(true);
getActivity().registerReceiver(mReceiver, new IntentFilter(LocalService.ACTION_ACCOUNT_UPDATE)); getActivity().registerReceiver(mReceiver, new IntentFilter(LocalService.ACTION_ACCOUNT_UPDATE));
} }
...@@ -151,25 +149,6 @@ public class AccountsManagementFragment extends Fragment implements HomeActivity ...@@ -151,25 +149,6 @@ public class AccountsManagementFragment extends Fragment implements HomeActivity
}); });
} }
@Override
public void onCreateOptionsMenu(Menu m, MenuInflater inf) {
super.onCreateOptionsMenu(m, inf);
inf.inflate(R.menu.account_creation, m);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
super.onOptionsItemSelected(item);
switch (item.getItemId()) {
case R.id.menuitem_create:
Intent intent = new Intent().setClass(getActivity(), AccountWizard.class);
startActivityForResult(intent, ACCOUNT_CREATE_REQUEST);
break;
}
return true;
}
private void launchAccountEditActivity(Account acc) { private void launchAccountEditActivity(Account acc) {
Log.i(TAG, "Launch account edit activity"); Log.i(TAG, "Launch account edit activity");
......
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/menuitem_create"
android:showAsAction="always"
android:icon="@drawable/ic_action_new"
android:title="@string/ab_account_creation"/>
</menu>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment