use of org.gateshipone.malp.application.fragments.ArtworkSettingsFragment in project malp by gateship-one.
the class MainActivity method openArtworkSettings.
@Override
public void openArtworkSettings() {
// Create fragment and give it an argument for the selected directory
ArtworkSettingsFragment newFragment = new ArtworkSettingsFragment();
FragmentManager fragmentManager = getSupportFragmentManager();
android.support.v4.app.FragmentTransaction transaction = fragmentManager.beginTransaction();
newFragment.setEnterTransition(new Slide(GravityCompat.getAbsoluteGravity(GravityCompat.START, getResources().getConfiguration().getLayoutDirection())));
newFragment.setExitTransition(new Slide(GravityCompat.getAbsoluteGravity(GravityCompat.END, getResources().getConfiguration().getLayoutDirection())));
transaction.addToBackStack("ArtworkSettingsFragment");
transaction.replace(R.id.fragment_container, newFragment);
// Commit the transaction
transaction.commit();
}
Aggregations