Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mathieu Féry
mobile21
Commits
da7f245d
Commit
da7f245d
authored
Dec 11, 2020
by
Mathilde BALLOUHEY
Browse files
Correction bug pivotage liste results
parent
8ef32158
Pipeline
#23359
failed with stages
in 2 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/fr/iutnantes/miar/dndgenerator/ResearchResultsActivity.java
View file @
da7f245d
...
...
@@ -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
();
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment