diff --git a/activityresult/build.gradle b/activityresult/build.gradle index 04324f6..14d79f4 100644 --- a/activityresult/build.gradle +++ b/activityresult/build.gradle @@ -31,5 +31,5 @@ dependencies { testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' - implementation project (':transfrag') + api project (':transfrag') } diff --git a/app/src/main/java/com/hss01248/transfragmentdemo/MainActivity.java b/app/src/main/java/com/hss01248/transfragmentdemo/MainActivity.java index a79c240..3a7cc80 100644 --- a/app/src/main/java/com/hss01248/transfragmentdemo/MainActivity.java +++ b/app/src/main/java/com/hss01248/transfragmentdemo/MainActivity.java @@ -99,7 +99,7 @@ public void onActivityCreated(@NonNull ActivityDemo2 activity, @Nullable Bundle } @Override - protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { + public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); Toast.makeText(MainActivity.this, "activity onActivityResult 回调", Toast.LENGTH_LONG).show(); } diff --git a/app/src/main/java/com/hss01248/transfragmentdemo/OrderFragment.java b/app/src/main/java/com/hss01248/transfragmentdemo/OrderFragment.java index 7581b35..6299ef1 100644 --- a/app/src/main/java/com/hss01248/transfragmentdemo/OrderFragment.java +++ b/app/src/main/java/com/hss01248/transfragmentdemo/OrderFragment.java @@ -4,6 +4,7 @@ import com.hss01248.transfrag.BaseTransFragment; + /** * time:2020/4/30 * author:hss