diff options
author | Parménides GV <parmegv@sdf.org> | 2013-08-01 10:35:35 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2013-10-04 10:39:13 +0200 |
commit | 661ecd222336fe939d0af095e2f489b6c363d6bc (patch) | |
tree | 502be0acb1734f93adc8ac816766e31b44544495 /src/se/leap | |
parent | aa8b01b7a4330447497fdcc926e73cd3bf9394ad (diff) |
ConfigurationWizard uses action instead of button.
New provider button has been converted to an action item, shown at the
bottom of the screen.
Diffstat (limited to 'src/se/leap')
-rw-r--r-- | src/se/leap/leapclient/ConfigurationWizard.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/se/leap/leapclient/ConfigurationWizard.java b/src/se/leap/leapclient/ConfigurationWizard.java index dd9f4121..c316a18c 100644 --- a/src/se/leap/leapclient/ConfigurationWizard.java +++ b/src/se/leap/leapclient/ConfigurationWizard.java @@ -301,9 +301,8 @@ implements ProviderListFragment.Callbacks, NewProviderDialog.NewProviderDialogIn /**
* Open the new provider dialog
- * @param view from which the dialog is showed
*/
- public void addAndSelectNewProvider(View view) {
+ public void addAndSelectNewProvider() {
FragmentTransaction fragment_transaction = getFragmentManager().beginTransaction();
Fragment previous_new_provider_dialog = getFragmentManager().findFragmentByTag(NewProviderDialog.TAG);
if (previous_new_provider_dialog != null) {
@@ -380,6 +379,8 @@ implements ProviderListFragment.Callbacks, NewProviderDialog.NewProviderDialogIn switch (item.getItemId()){
case R.id.about_leap:
showAboutFragment(getCurrentFocus());
+ case R.id.new_provider:
+ addAndSelectNewProvider();
default:
return super.onOptionsItemSelected(item);
}
|