From 92760c9f2dc8a1ee2d7ff6f15f23b3c0d2bfa0d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C4=9F=C4=B1zcan=20Yavuz?= <25702402+cosmohacker@users.noreply.github.com> Date: Sat, 24 Apr 2021 05:48:01 -0400 Subject: [PATCH] Update IntentService.java --- .../java/com/cosmohacker/intentservice/IntentService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/intentservice/src/main/java/com/cosmohacker/intentservice/IntentService.java b/intentservice/src/main/java/com/cosmohacker/intentservice/IntentService.java index 6a0b192..06c3e84 100644 --- a/intentservice/src/main/java/com/cosmohacker/intentservice/IntentService.java +++ b/intentservice/src/main/java/com/cosmohacker/intentservice/IntentService.java @@ -9,18 +9,18 @@ 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); @@ -28,7 +28,7 @@ public void intentAddressWithBundle(Context mContext, Class forwardClass, String 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);