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
d6713782
Commit
d6713782
authored
Jun 18, 2019
by
youjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
旅行首页可通过设置来加载热门游碎片。
parent
71275687
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
TravelActivity.java
RvTravel/src/main/java/com/rv/travel/TravelActivity.java
+15
-3
No files found.
RvTravel/src/main/java/com/rv/travel/TravelActivity.java
View file @
d6713782
...
...
@@ -14,9 +14,9 @@ import android.widget.LinearLayout;
import
android.widget.TextView
;
import
com.base.utils.base.BaseActivity
;
import
com.frame.rv.widget.BaseTabLayout
;
import
com.frame.rv.ModuleEventUtil
;
import
com.frame.rv.OnModuleEventListener
;
import
com.frame.rv.widget.BaseTabLayout
;
import
com.rv.travel.api.ApiUtil
;
import
com.rv.travel.api.OnApiResponseCallback
;
import
com.rv.travel.bean.BeanHot
;
...
...
@@ -33,6 +33,8 @@ import butterknife.OnClick;
public
class
TravelActivity
extends
BaseActivity
{
public
static
boolean
isNeedLogin
=
false
;
//是否需要登录
public
static
boolean
isGoHotType
=
false
;
//是否需要显示热门游碎片
public
static
BeanHot
goHotTypeData
=
null
;
//需要显示热门游碎片,要对其赋值
@SuppressLint
(
"StaticFieldLeak"
)
private
static
TravelActivity
instance
;
...
...
@@ -121,7 +123,7 @@ public class TravelActivity extends BaseActivity {
ApiUtil
.
getTravelMember
(
"1"
,
new
OnApiResponseCallback
<
List
<
BeanTravelMember
>,
String
>()
{
@Override
public
void
done
(
List
<
BeanTravelMember
>
data
,
String
errorMessage
)
{
if
(
errorMessage
!=
null
&&
data
==
null
)
{
if
(
errorMessage
!=
null
&&
data
==
null
)
{
OkGoUtil
.
setToken
(
null
);
}
}
...
...
@@ -132,7 +134,15 @@ public class TravelActivity extends BaseActivity {
@Override
public
void
onView
()
{
setTravelFragmentMain
();
if
(
TravelActivity
.
isGoHotType
)
{
if
(
goHotTypeData
!=
null
)
{
setTravelFragmentHotType
(
goHotTypeData
);
}
else
{
showToastShort
(
"从其他模块进入热门游,未携带数据"
);
}
}
else
{
setTravelFragmentMain
();
}
searchInput
.
addTextChangedListener
(
new
TextWatcher
()
{
@Override
...
...
@@ -196,6 +206,8 @@ public class TravelActivity extends BaseActivity {
@Override
protected
void
onDestroy
()
{
super
.
onDestroy
();
isGoHotType
=
false
;
goHotTypeData
=
null
;
instance
=
null
;
hotMoreTitleLayoutStatic
=
null
;
if
(
ModuleEventUtil
.
getOnModuleEventListener
()
!=
null
)
{
...
...
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