mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 03:05:18 +08:00
Fix variable prefix for intent extra
This commit is contained in:
@@ -29,7 +29,7 @@ import io.noties.markwon.recycler.SimpleEntry;
|
|||||||
|
|
||||||
public class ReportActivity extends AppCompatActivity {
|
public class ReportActivity extends AppCompatActivity {
|
||||||
|
|
||||||
private static final String ARG_REPORT_INFO = "report_info";
|
private static final String EXTRA_REPORT_INFO = "report_info";
|
||||||
|
|
||||||
ReportInfo mReportInfo;
|
ReportInfo mReportInfo;
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ public class ReportActivity extends AppCompatActivity {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mReportInfo = (ReportInfo) bundle.getSerializable(ARG_REPORT_INFO);
|
mReportInfo = (ReportInfo) bundle.getSerializable(EXTRA_REPORT_INFO);
|
||||||
|
|
||||||
if (mReportInfo == null) {
|
if (mReportInfo == null) {
|
||||||
finish();
|
finish();
|
||||||
@@ -108,7 +108,7 @@ public class ReportActivity extends AppCompatActivity {
|
|||||||
public void onSaveInstanceState(@NonNull Bundle outState) {
|
public void onSaveInstanceState(@NonNull Bundle outState) {
|
||||||
super.onSaveInstanceState(outState);
|
super.onSaveInstanceState(outState);
|
||||||
|
|
||||||
outState.putSerializable(ARG_REPORT_INFO, mReportInfo);
|
outState.putSerializable(EXTRA_REPORT_INFO, mReportInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -176,7 +176,7 @@ public class ReportActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
Intent intent = new Intent(context, ReportActivity.class);
|
Intent intent = new Intent(context, ReportActivity.class);
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
bundle.putSerializable(ARG_REPORT_INFO, reportInfo);
|
bundle.putSerializable(EXTRA_REPORT_INFO, reportInfo);
|
||||||
intent.putExtras(bundle);
|
intent.putExtras(bundle);
|
||||||
|
|
||||||
// Note that ReportActivity task has documentLaunchMode="intoExisting" set in AndroidManifest.xml
|
// Note that ReportActivity task has documentLaunchMode="intoExisting" set in AndroidManifest.xml
|
||||||
|
Reference in New Issue
Block a user