Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uv-amse-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lucas NAURY
uv-amse-android
Commits
83acb54e
Commit
83acb54e
authored
Feb 17, 2024
by
Lucas NAURY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout de l'annonce en haut de la liste
parent
1865e9d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
HomeFragment.java
...in/java/com/example/tpleboncoin/ui/home/HomeFragment.java
+4
-2
No files found.
app/src/main/java/com/example/tpleboncoin/ui/home/HomeFragment.java
View file @
83acb54e
...
...
@@ -79,8 +79,10 @@ public class HomeFragment extends Fragment {
// On récupère l'annonce qui vient d'être créée s'il y en a une
if
(
getArguments
()
!=
null
&&
getArguments
().
getParcelable
(
"nouvelleAnnonce"
)
!=
null
){
Annonce
newAnnonce
=
getArguments
().
getParcelable
(
"nouvelleAnnonce"
);
Log
.
d
(
"HomeFragment"
,
newAnnonce
.
getTitre
());
mDataset
.
add
(
newAnnonce
);
// On ajoute la nouvelle annonce en haut de la liste
mDataset
.
add
(
0
,
newAnnonce
);
}
// adapter pour gérer le visu de l'annonce
...
...
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