mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-15 05:21:13 +01:00
Fix variable prefix for intent extra
This commit is contained in:
parent
7aa957c684
commit
9bbcc08ff3
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue