Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
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
Merge Requests
1
Merge Requests
1
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
lify
RvApp
Commits
8e304a84
Commit
8e304a84
authored
Aug 22, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决引导页内存泄漏的问题
parent
bc6a42d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
4 deletions
+37
-4
GuideActivity.java
RvClient/src/main/java/com/xxfc/rv/GuideActivity.java
+26
-2
GuideFourthFragment.java
...c/main/java/com/xxfc/rv/fragment/GuideFourthFragment.java
+11
-2
No files found.
RvClient/src/main/java/com/xxfc/rv/GuideActivity.java
View file @
8e304a84
...
@@ -71,12 +71,26 @@ public class GuideActivity extends BaseActivity<CommonPresenter> {
...
@@ -71,12 +71,26 @@ public class GuideActivity extends BaseActivity<CommonPresenter> {
}
}
});
});
btnSkip
.
setOnClickListener
(
v
->
{
btnSkip
.
setOnClickListener
(
v
->
{
startActivity
(
MainActivity
.
getIntent
(
getApplicationContext
()));
mPresenter
.
getView
().
onShowLoading
();
mPresenter
.
getView
().
onShowLoading
();
startActivity
(
MainActivity
.
getIntent
(
GuideActivity
.
this
));
new
Thread
(()
->
{
finish
();
try
{
Thread
.
sleep
(
1000
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
finish
();
}).
start
();
});
});
}
}
@Override
public
void
finish
()
{
mPresenter
.
getView
().
onHideLoading
();
super
.
finish
();
}
@Override
@Override
protected
void
loadData
(
Bundle
savedInstanceState
,
Intent
intent
)
{
protected
void
loadData
(
Bundle
savedInstanceState
,
Intent
intent
)
{
...
@@ -95,4 +109,14 @@ public class GuideActivity extends BaseActivity<CommonPresenter> {
...
@@ -95,4 +109,14 @@ public class GuideActivity extends BaseActivity<CommonPresenter> {
list
.
add
(
new
GuideFourthFragment
());
list
.
add
(
new
GuideFourthFragment
());
return
list
;
return
list
;
}
}
@Override
protected
void
onStop
()
{
super
.
onStop
();
}
@Override
public
void
onDestroy
()
{
super
.
onDestroy
();
}
}
}
RvClient/src/main/java/com/xxfc/rv/fragment/GuideFourthFragment.java
View file @
8e304a84
...
@@ -12,6 +12,7 @@ import com.ruiwenliu.wrapper.base.BaseBean;
...
@@ -12,6 +12,7 @@ import com.ruiwenliu.wrapper.base.BaseBean;
import
com.ruiwenliu.wrapper.base.BaseFragment
;
import
com.ruiwenliu.wrapper.base.BaseFragment
;
import
com.ruiwenliu.wrapper.base.presenter.CommonPresenter
;
import
com.ruiwenliu.wrapper.base.presenter.CommonPresenter
;
import
com.rv.share.utils.TransformationUtils
;
import
com.rv.share.utils.TransformationUtils
;
import
com.xxfc.rv.GuideActivity
;
import
com.xxfc.rv.MainActivity
;
import
com.xxfc.rv.MainActivity
;
import
com.xxfc.rv.R
;
import
com.xxfc.rv.R
;
...
@@ -43,9 +44,17 @@ public class GuideFourthFragment extends BaseFragment<CommonPresenter> {
...
@@ -43,9 +44,17 @@ public class GuideFourthFragment extends BaseFragment<CommonPresenter> {
btnConfirm
=
getView
().
findViewById
(
R
.
id
.
btn_confirm
);
btnConfirm
=
getView
().
findViewById
(
R
.
id
.
btn_confirm
);
btnConfirm
.
setVisibility
(
View
.
VISIBLE
);
btnConfirm
.
setVisibility
(
View
.
VISIBLE
);
btnConfirm
.
setOnClickListener
(
v
->
{
btnConfirm
.
setOnClickListener
(
v
->
{
mPresenter
.
getView
().
onShowLoading
();
startActivity
(
MainActivity
.
getIntent
(
getContext
()));
startActivity
(
MainActivity
.
getIntent
(
getContext
()));
getActivity
().
finish
();
mPresenter
.
getView
().
onShowLoading
();
new
Thread
(()
->
{
try
{
Thread
.
sleep
(
1000
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
getActivity
().
finish
();;
}).
start
();
});
});
textView1
.
setText
(
"开启房车自驾新旅程"
);
textView1
.
setText
(
"开启房车自驾新旅程"
);
String
html
=
"出发即是家,开门即是景"
;
String
html
=
"出发即是家,开门即是景"
;
...
...
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