Fixed list/item animation

pull/147/head
M66B 6 years ago
parent 111735769c
commit cb45c51231

@ -44,6 +44,7 @@ import android.os.ParcelFileDescriptor;
import android.preference.PreferenceManager; import android.preference.PreferenceManager;
import android.provider.ContactsContract; import android.provider.ContactsContract;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.TypedValue;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.View; import android.view.View;
@ -1095,9 +1096,14 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
args.putBoolean("pane", true); args.putBoolean("pane", true);
} }
TypedValue enter = new TypedValue();
TypedValue exit = new TypedValue();
getTheme().resolveAttribute(android.R.attr.activityOpenEnterAnimation, enter, false);
getTheme().resolveAttribute(android.R.attr.activityOpenExitAnimation, exit, false);
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
fragmentTransaction.setCustomAnimations( fragmentTransaction.setCustomAnimations(
android.R.anim.fade_in, android.R.anim.fade_in, enter.resourceId, exit.resourceId,
android.R.anim.fade_out, android.R.anim.fade_out); android.R.anim.fade_out, android.R.anim.fade_out);
fragmentTransaction.replace(pane, fragment).addToBackStack("thread"); fragmentTransaction.replace(pane, fragment).addToBackStack("thread");
fragmentTransaction.commit(); fragmentTransaction.commit();

Loading…
Cancel
Save