diff --git a/android_app/app/src/main/java/com/health/openscale/gui/MainActivity.java b/android_app/app/src/main/java/com/health/openscale/gui/MainActivity.java index 3b985c90..c53dd7ce 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/MainActivity.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/MainActivity.java @@ -279,7 +279,7 @@ public class MainActivity extends AppCompatActivity { case R.id.nav_settings: Intent settingsIntent = new Intent(this, SettingsActivity.class); settingsIntent.putExtra(SettingsActivity.EXTRA_TINT_COLOR, navDrawer.getItemTextColor().getDefaultColor()); - startActivityForResult(settingsIntent, 1); + startActivity(settingsIntent); return; case R.id.nav_help: startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/oliexdev/openScale/wiki"))); @@ -336,7 +336,7 @@ public class MainActivity extends AppCompatActivity { return true; case R.id.action_add_measurement: Intent intent = new Intent(getApplicationContext(), DataEntryActivity.class); - startActivityForResult(intent, 1); + startActivity(intent); return true; case R.id.action_bluetooth_status: invokeSearchBluetoothDevice(); diff --git a/android_app/app/src/main/java/com/health/openscale/gui/fragments/GraphFragment.java b/android_app/app/src/main/java/com/health/openscale/gui/fragments/GraphFragment.java index 829e54b2..b2cd7aa2 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/fragments/GraphFragment.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/fragments/GraphFragment.java @@ -640,7 +640,7 @@ public class GraphFragment extends Fragment implements FragmentUpdateListener { Intent intent = new Intent(graphView.getContext(), DataEntryActivity.class); intent.putExtra(DataEntryActivity.EXTRA_ID, id); - startActivityForResult(intent, 1); + startActivity(intent); } @Override diff --git a/android_app/app/src/main/java/com/health/openscale/gui/fragments/TableFragment.java b/android_app/app/src/main/java/com/health/openscale/gui/fragments/TableFragment.java index ee8c45f7..6f0b2a2d 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/fragments/TableFragment.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/fragments/TableFragment.java @@ -281,7 +281,7 @@ public class TableFragment extends Fragment implements FragmentUpdateListener { public void onItemClick(AdapterView parent, View view, int position, long id) { Intent intent = new Intent(tableView.getContext(), DataEntryActivity.class); intent.putExtra(DataEntryActivity.EXTRA_ID, (int)id); - startActivityForResult(intent, 1); + startActivity(intent); } }