@@ -0,0 +1,1581 @@
+package com.xiaojinzi.component1.view;%0A%0Aimport android.content.Intent;%0Aimport android.os.Bundle;%0Aimport android.widget.TextView;%0A%0Aimport com.xiaojinzi.base.view.BaseAct;%0Aimport com.xiaojinzi.component.Component;%0Aimport com.xiaojinzi.component.anno.FiledAutowiredAnno;%0Aimport com.xiaojinzi.component.anno.RouterAnno;%0Aimport com.xiaojinzi.component1.R;%0A%0A/**%0A * %E6%B5%8B%E8%AF%95%E8%BF%99%E4%B8%AA%E7%95%8C%E9%9D%A2%E6%98%AF%E4%B8%80%E4%B8%AA Singletask %E6%A8%A1%E5%BC%8F%E7%9A%84%0A * %E5%BD%93%E6%94%B6%E5%88%B0 onNewIntent %E6%96%B9%E6%B3%95%E5%9B%9E%E8%B0%83%E7%9A%84%E6%97%B6%E5%80%99%E6%89%8D%E4%BC%9A%E8%BF%94%E5%9B%9E%0A */%0A@RouterAnno(%0A        path = %22testInjectAct4%22%0A)%0Apublic class TestInjectAct4 extends BaseAct %7B%0A%0A    private String compareStr = %22defaultName%22;%0A%0A    TextView tv_name;%0A%0A    @FiledAutowiredAnno(%22name%22)%0A    String name = compareStr;%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.component1_test_inject_parameter_act4);%0A        tv_name = findViewById(R.id.tv_name);%0A        Component.inject(this);%0A        tv_name.setText(name);%0A%0A        if (compareStr.equals(name)) %7B%0A            returnData();%0A        %7Delse %7B%0A            compareStr = name;%0A        %7D%0A%0A    %7D%0A%0A    @Override%0A    protected boolean isReturnError() %7B%0A        return compareStr.equals(name);%0A    %7D%0A%0A    @Override%0A    protected boolean isReturnIntent() %7B%0A        return true;%0A    %7D%0A%0A    @Override%0A    protected boolean isReturn() %7B%0A        return false;%0A    %7D%0A%0A    @Override%0A    protected void onNewIntent(Intent intent) %7B%0A        super.onNewIntent(intent);%0A        Component.inject(this);%0A        // Component.injectFromIntent(this, intent);%0A        tv_name.setText(name);%0A%0A        returnData();%0A    %7D%0A%0A%7D%0A

支持了 SingleTask 模式的 Activity 的 onNewIntent 方法的属性注入