Skip to content

Commit 822d339

Browse files
author
Jorge Costa
committed
Fixed documentation and nullpointer
1 parent b379c2b commit 822d339

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

activity-fragment-manager/src/main/java/com/massivedisaster/activitymanager/ActivityTransaction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public class ActivityTransaction implements ITransaction<ActivityTransaction> {
9494
/**
9595
* ActivityTransaction constructor, created to be used by a fragment.
9696
*
97-
* @param context The fragment to be used to start the new activity.
97+
* @param context The context to be used to start the new activity.
9898
* @param abstractBaseActivityClass The AbstractFragmentActivity class.
9999
* @param fragmentClass The Fragment to be injected in the activityClass.
100100
*/
@@ -103,7 +103,7 @@ public class ActivityTransaction implements ITransaction<ActivityTransaction> {
103103
mContext = context;
104104
mAbstractBaseActivity = abstractBaseActivityClass;
105105

106-
mIntent = new Intent(mFragment.getContext(), mAbstractBaseActivity);
106+
mIntent = new Intent(mContext, mAbstractBaseActivity);
107107
mIntent.putExtra(ACTIVITY_MANAGER_FRAGMENT, fragmentClass.getCanonicalName());
108108
}
109109

0 commit comments

Comments
 (0)