From e1c44ca66accfb6d8816d379334522868ffbd7a3 Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Mon, 26 Feb 2018 21:03:03 -0500 Subject: [PATCH] Remove unused settings menu The settings menu was present in the Child Device view, but did not do anything when selected. --- .../protect/babymonitor/MonitorActivity.java | 21 ------------------- app/src/main/res/menu/start.xml | 11 ---------- 2 files changed, 32 deletions(-) delete mode 100644 app/src/main/res/menu/start.xml diff --git a/app/src/main/java/protect/babymonitor/MonitorActivity.java b/app/src/main/java/protect/babymonitor/MonitorActivity.java index e283180..e915734 100644 --- a/app/src/main/java/protect/babymonitor/MonitorActivity.java +++ b/app/src/main/java/protect/babymonitor/MonitorActivity.java @@ -203,27 +203,6 @@ protected void onDestroy() super.onDestroy(); } - @Override - public boolean onCreateOptionsMenu(Menu menu) - { - // Inflate the menu; this adds items to the action bar if it is present. - getMenuInflater().inflate(R.menu.start, menu); - return true; - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) - { - // Handle action bar item clicks here. The action bar will - // automatically handle clicks on the Home/Up button, so long - // as you specify a parent activity in AndroidManifest.xml. - int id = item.getItemId(); - if (id == R.id.action_settings) { - return true; - } - return super.onOptionsItemSelected(item); - } - private void registerService(final int port) { final NsdServiceInfo serviceInfo = new NsdServiceInfo(); diff --git a/app/src/main/res/menu/start.xml b/app/src/main/res/menu/start.xml deleted file mode 100644 index 3c9aad9..0000000 --- a/app/src/main/res/menu/start.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - -