|
|
@@ -19,7 +19,7 @@ import com.sheep.gamegroup.util.ListUtil;
|
|
|
import com.sheep.gamegroup.util.LogUtil;
|
|
|
import com.sheep.gamegroup.util.RunningTaskUtil;
|
|
|
import com.sheep.gamegroup.util.ScreenShotListenManager;
|
|
|
-import com.sheep.gamegroup.view.activity.ActMain;
|
|
|
+import com.sheep.gamegroup.view.activity.SplashAct;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.FileUtil;
|
|
|
|
|
|
@@ -69,10 +69,12 @@ public class ListenerShotService extends Service {
|
|
|
notification.contentView = new RemoteViews(getPackageName(), R.layout.notification_sheep_shot_screen);
|
|
|
|
|
|
//点击通知栏跳转到相应的应用里面
|
|
|
- Intent intent = new Intent(this, ActMain.class);
|
|
|
+ Intent notificationIntent = new Intent(this, SplashAct.class);
|
|
|
+ notificationIntent.setAction(Intent.ACTION_MAIN);
|
|
|
+ notificationIntent.addCategory(Intent.CATEGORY_LAUNCHER);
|
|
|
//这一句加不加没什么影响
|
|
|
// intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
- notification.contentIntent = PendingIntent.getActivity(this, 1, intent, 0);
|
|
|
+ notification.contentIntent = PendingIntent.getActivity(this, 1, notificationIntent, 0);
|
|
|
|
|
|
//这里的id不能是0
|
|
|
startForeground(113922, notification);
|