Sets MvxException.InnerException if Android presenters fail to instantiate a fragment.
This commit is contained in:
Родитель
4bcca274e2
Коммит
d51b304b5b
|
@ -547,9 +547,9 @@ namespace MvvmCross.Droid.Support.V7.AppCompat
|
|||
var fragment = (IMvxFragmentView)Fragment.Instantiate(CurrentActivity, fragmentName);
|
||||
return fragment;
|
||||
}
|
||||
catch
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new MvxException($"Cannot create Fragment '{fragmentName}'. Are you use the wrong base class?");
|
||||
throw new MvxException(ex, $"Cannot create Fragment '{fragmentName}'. Are you use the wrong base class?");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -621,9 +621,9 @@ namespace MvvmCross.Platforms.Android.Presenters
|
|||
var fragment = (IMvxFragmentView)Fragment.Instantiate(CurrentActivity, fragmentName);
|
||||
return fragment;
|
||||
}
|
||||
catch
|
||||
catch (System.Exception ex)
|
||||
{
|
||||
throw new MvxException($"Cannot create Fragment '{fragmentName}'. Use the MvxAppCompatViewPresenter when using Android Support Fragments");
|
||||
throw new MvxException(ex, $"Cannot create Fragment '{fragmentName}'. Use the MvxAppCompatViewPresenter when using Android Support Fragments");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче