Verified Commit 120c9b88 authored by HashikD's avatar HashikD
Browse files

Made settings button invisible on open settings

parent cddbc2b4
......@@ -76,9 +76,11 @@ public class MainActivity extends AppCompatActivity implements MainFragmentCallb
if (fragment instanceof MainFragment) {
currentFragment = FragmentConstants.MAIN_FRAGMENT;
getSupportActionBar().setDisplayHomeAsUpEnabled(false);
settingsButton.setVisibility(View.VISIBLE);
} else {
currentFragment = FragmentConstants.APP_SETTINGS_FRAGMENT;
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
settingsButton.setVisibility(View.GONE);
}
Log.d(TAG, "startFragment: " + currentFragment);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment