Commit da7f245d authored by Mathilde BALLOUHEY's avatar Mathilde BALLOUHEY
Browse files

Correction bug pivotage liste results

parent 8ef32158
Pipeline #23359 failed with stages
in 2 minutes and 41 seconds
......@@ -25,6 +25,7 @@ public class ResearchResultsActivity extends AppCompatActivity {
private static final int ERROR_INTENT = -2;
private static String TAG = "ResearchResultsActivity :: ";
public static final String SHEET = "sheet";
private static Bundle m_savedInstanceState;
public static List<DnDSheet> m_listResults;
ListResultsAdapter m_adater;
private int m_systemKey, m_classKey, m_numberResults;
......@@ -36,7 +37,7 @@ public class ResearchResultsActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layout_research_results);
m_savedInstanceState = savedInstanceState;
rclr_researchResults = findViewById(R.id.rclr_researchResults);
// Get intent elements
......@@ -46,9 +47,14 @@ public class ResearchResultsActivity extends AppCompatActivity {
m_numberResults = v_intent.getIntExtra(HomeActivity.NUMBER_RESULT, 1);
v_intent.removeExtra(HomeActivity.SYSTEM_KEY);
Log.d(TAG, m_systemKey + " " + m_classKey);
}
@Override
protected void onResume() {
super.onResume();
AsyncTaskResearch v_asyncTaskResearch = new AsyncTaskResearch();
v_asyncTaskResearch.execute(savedInstanceState);
v_asyncTaskResearch.execute(m_savedInstanceState);
}
@Override
......@@ -91,7 +97,6 @@ public class ResearchResultsActivity extends AppCompatActivity {
int v_index = data.getIntExtra(ListResultsAdapter.INDEX, -1);
if (v_index > -1) {
m_listResults.set(v_index, (DnDSheet) data.getSerializableExtra(DisplayResultActivity.SHEET));
m_adater.notifyDataSetChanged();
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment