Hello, I encountered such a problem: There is a fragment from which the Activity is launched with the following topic:
<style name="AppThemeDialog" parent="Theme.AppCompat.Light.Dialog"> <!-- Customize your theme here. --> <item name="windowNoTitle">true</item> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> <item name="android:splitMotionEvents">false</item> <item name="android:windowEnableSplitTouch">false</item> <item name="android:soundEffectsEnabled">false</item> </style> The launch code for this activation is also quite simple:
public void onClick(View v) { MusicManager.continueMusic = true; Intent intent = new Intent(v.getContext(), UnlockPartActivity.class); getActivity().overridePendingTransition(R.anim.slide_in_up, R.anim.slide_out_up); BlockFragment.this.startActivityForResult(intent, REQUEST_UNLOCK); } This Activity starts and everything seems to be fine. But if you quickly double-click on the button that starts this activity, it will open twice. This should not be. It only comes to mind to temporarily block a button or remove a handler before exiting activation. However, can there be more correct ways to correct this behavior?