]> git.ktnx.net Git - mobile-ledger.git/commitdiff
merge 'auto' api version handling branch with 'default'
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 22 Dec 2019 06:44:23 +0000 (08:44 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 22 Dec 2019 06:44:23 +0000 (08:44 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java

index e67eda008cfbe8e9521c3dc6eaeb70c8c4cacd28..755c6f2b18ef85c4108416904cfa4e3d236d762b 100644 (file)
@@ -246,9 +246,6 @@ public class ProfileDetailFragment extends Fragment implements HueRingDialog.Hue
             menu.inflate(R.menu.api_version);
             menu.setOnMenuItemClickListener(item -> {
                 switch (item.getItemId()) {
-                    case R.id.api_version_menu_auto:
-                        apiVersion = SendTransactionTask.API.auto;
-                        break;
                     case R.id.api_version_menu_html:
                         apiVersion = SendTransactionTask.API.html;
                         break;
@@ -258,6 +255,7 @@ public class ProfileDetailFragment extends Fragment implements HueRingDialog.Hue
                     case R.id.api_version_menu_pre_1_15:
                         apiVersion = SendTransactionTask.API.pre_1_15;
                         break;
+                    case R.id.api_version_menu_auto:
                     default:
                         apiVersion = SendTransactionTask.API.auto;
                 }