Skip to content

Commit

Permalink
Update IntentService.java
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmohacker committed Apr 24, 2021
1 parent 8ece701 commit 92760c9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@

public class IntentService {

public void intentAddress(Context mContext, Class forwardClass, String transmissionType) {
public static void intentAddress(Context mContext, Class forwardClass, String transmissionType) {
Intent intent = new Intent(mContext, forwardClass);
mContext.startActivity(intent);
intentTransition(mContext, transmissionType);
}

public void intentAddressSimple(Context mContext, Class forwardClass) {
public static void intentAddressSimple(Context mContext, Class forwardClass) {
Intent intent = new Intent(mContext, forwardClass);
mContext.startActivity(intent);
}

public void intentAddressWithBundle(Context mContext, Class forwardClass, String transmissionType, Bundle bundle, String key, String content) {
public static void intentAddressWithBundle(Context mContext, Class forwardClass, String transmissionType, Bundle bundle, String key, String content) {
Intent intent = new Intent(mContext, forwardClass);
bundle.putString(key, content);
intent.putExtras(bundle);
mContext.startActivity(intent);
intentTransition(mContext, transmissionType);
}

public void intentAddressSimpleWithBundle(Context mContext, Class forwardClass, Bundle bundle, String key, String content) {
public static void intentAddressSimpleWithBundle(Context mContext, Class forwardClass, Bundle bundle, String key, String content) {
Intent intent = new Intent(mContext, forwardClass);
bundle.putString(key, content);
intent.putExtras(bundle);
Expand Down

0 comments on commit 92760c9

Please sign in to comment.