I am using facebook sdk in my application. In order not to show the solo indicator when the facebook button is pressed, I use:
<activity android:name="com.facebook.FacebookActivity" android:configChanges= "keyboard|keyboardHidden|screenLayout|screenSize|orientation" android:theme="@android:style/Theme.NoDisplay" </activity>
However, I think for devices with api 23+ this causes a crash:
"com.facebook.FacebookActivity did not call finish () before onResume () completed"
Someone said here: Activity did not cause the finish? (API 23) by writing:
@Override protected void onStart() { super.onStart(); setVisible(true); }
in problematic activities they solved the problem. But since I cannot edit FacebookActivity, is there an alternative solution?
source share