fixed fab not hiding when going back from settings to create frag
This commit is contained in:
@@ -45,6 +45,13 @@ public class MainActivity extends AppCompatActivity {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
if(getSupportFragmentManager().getBackStackEntryCount() > 0)
|
||||
mFAB.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
getMenuInflater().inflate(R.menu.main_activity, menu);
|
||||
|
||||
Reference in New Issue
Block a user