You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Briar's crash report and feedback activity, we were considering using fragments to improve the crash UX for users. However, FragmentActivity has no delegate alternative (unlike AppCompatActivity, which we can replicate in our subclass of BaseCrashReportDialog using AppCompatDelegate), and because ACRA only accepts subclasses of BaseCrashReportDialog, it is currently not possible to use fragments with ACRA.
The easiest and IMHO best solution is to simply change BaseCrashReportDialog to extend FragmentActivity instead of Activity. This is a one-line change (plus import), should have zero effect on existing usages, and does not require any additional dependencies (because FragmentActivity is part of support-v4, which is already leveraged by ACRA).
The text was updated successfully, but these errors were encountered:
Note that it is possible to do something similar by using FrameLayout and showing/hiding a series of views (like used to be commonly done before fragments were introduced), but that is messier to implement, and requires more work to handle transitions between views.
In Briar's crash report and feedback activity, we were considering using fragments to improve the crash UX for users. However,
FragmentActivity
has no delegate alternative (unlikeAppCompatActivity
, which we can replicate in our subclass ofBaseCrashReportDialog
usingAppCompatDelegate
), and because ACRA only accepts subclasses ofBaseCrashReportDialog
, it is currently not possible to use fragments with ACRA.The easiest and IMHO best solution is to simply change
BaseCrashReportDialog
to extendFragmentActivity
instead ofActivity
. This is a one-line change (plus import), should have zero effect on existing usages, and does not require any additional dependencies (becauseFragmentActivity
is part of support-v4, which is already leveraged by ACRA).The text was updated successfully, but these errors were encountered: