Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
development
Commits
3c16ec88
Commit
3c16ec88
authored
11 years ago
by
Adam Powell
Browse files
Options
Download
Email Patches
Plain Diff
Fix bugs in FragmentLayoutSupport sample in Support4Demos
Change-Id: I6b2828f8f6510e34cc11c3dc24b5022b241bd542
parent
a6b4e7e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
samples/Support4Demos/src/com/example/android/supportv4/app/FragmentLayoutSupport.java
.../example/android/supportv4/app/FragmentLayoutSupport.java
+4
-8
No files found.
samples/Support4Demos/src/com/example/android/supportv4/app/FragmentLayoutSupport.java
View file @
3c16ec88
...
...
@@ -152,14 +152,10 @@ public class FragmentLayoutSupport extends FragmentActivity {
// Execute a transaction, replacing any existing fragment
// with this one inside the frame.
FragmentTransaction
ft
=
getFragmentManager
().
beginTransaction
();
if
(
index
==
0
)
{
ft
.
replace
(
R
.
id
.
details
,
details
);
}
else
{
ft
.
replace
(
R
.
id
.
a_item
,
details
);
}
ft
.
setTransition
(
FragmentTransaction
.
TRANSIT_FRAGMENT_FADE
);
ft
.
commit
();
getFragmentManager
().
beginTransaction
()
.
replace
(
R
.
id
.
details
,
details
)
.
setTransition
(
FragmentTransaction
.
TRANSIT_FRAGMENT_FADE
)
.
commit
();
}
}
else
{
...
...
This diff is collapsed.
Click to expand it.
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