Fix fragment glitch when using the back button

This commit is contained in:
Tanguy Herbron 2018-06-04 02:02:55 +02:00
parent 142b00aff5
commit 38a84e0f1e

View File

@ -8,8 +8,10 @@ import android.support.design.widget.NavigationView;
import android.support.v4.app.Fragment; import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction; import android.support.v4.app.FragmentTransaction;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout; import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.AppCompatActivity; import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Menu; import android.view.Menu;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.Window; import android.view.Window;
@ -103,10 +105,11 @@ public class HomeActivity extends AppCompatActivity {
}); });
setupBalanceSwitch(); setupBalanceSwitch();
}
//Objects initialization @Override
public void onBackPressed() {
//Layouts setup drawerLayout.openDrawer(GravityCompat.START);
} }
public void setListener(HideBalanceSwitch switchInterface) public void setListener(HideBalanceSwitch switchInterface)