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
e53f2442
Commit
e53f2442
authored
Aug 05, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改唤醒页面
parent
dc8cf5bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
33 deletions
+28
-33
RvClientApplication.java
RvClient/src/main/java/com/xxfc/rv/RvClientApplication.java
+3
-2
WakeUpActivity.java
RvClient/src/main/java/com/xxfc/rv/WakeUpActivity.java
+23
-27
HomeFragment.java
...java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
+2
-4
No files found.
RvClient/src/main/java/com/xxfc/rv/RvClientApplication.java
View file @
e53f2442
...
...
@@ -56,8 +56,9 @@ public class RvClientApplication extends FrameApp {
ShareInstall
.
getInstance
().
init
(
this
);
ShareInstall
.
getInstance
().
reportRegister
();
}
LogUtil
.
setLogEnable
(
true
,
getApplicationContext
());
CrashHandler
.
getInstance
().
init
(
getApplicationContext
());
LogUtil
.
setLogEnable
(
false
,
getApplicationContext
());
// CrashHandler.getInstance().init(getApplicationContext());
// 在使用 SDK 各组间之前初始化 context 信息,传入 ApplicationContext
SDKInitializer
.
initialize
(
this
);
//自4.3.0起,百度地图SDK所有接口均支持百度坐标和国测局坐标,用此方法设置您使用的坐标类型.
...
...
RvClient/src/main/java/com/xxfc/rv/WakeUpActivity.java
View file @
e53f2442
...
...
@@ -34,33 +34,29 @@ public class WakeUpActivity extends AppCompatActivity {
ShareInstall
.
getInstance
().
getInfo
(
intent
,
listener
);
}
private
AppGetInfoListener
listener
=
new
AppGetInfoListener
()
{
@Override
public
void
onGetInfoFinish
(
String
info
)
{
LogUtil
.
d
(
"ShareInstall"
,
"info = "
+
info
);
if
(
info
.
contains
(
"code"
))
try
{
JSONObject
object
=
new
JSONObject
(
info
);
String
inviteCode
=
object
.
optString
(
"code"
);
if
(!
TextUtils
.
isEmpty
(
inviteCode
))
{
Cookie
.
save
(
getApplicationContext
(),
"code"
,
inviteCode
);
}
String
url
=
object
.
optString
(
"url"
);
LogUtil
.
d
(
"唤醒传过来的url="
+
url
);
String
title
=
URLDecoder
.
decode
(
object
.
optString
(
"title"
),
"UTF-8"
);
LogUtil
.
d
(
"唤醒传过来的tile="
+
title
);
if
(!
TextUtils
.
isEmpty
(
url
)
&&
!
TextUtils
.
isEmpty
(
title
))
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
MainActivity
.
class
);
intent
.
putExtra
(
"to"
,
"webView"
);
intent
.
putExtra
(
"url"
,
url
);
intent
.
putExtra
(
"title"
,
title
);
startActivity
(
intent
);
finish
();
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
private
AppGetInfoListener
listener
=
info
->
{
LogUtil
.
d
(
"ShareInstall"
,
"info = "
+
info
);
Intent
intent
=
new
Intent
(
getApplicationContext
(),
MainActivity
.
class
);
if
(
info
.
contains
(
"code"
))
try
{
JSONObject
object
=
new
JSONObject
(
info
);
String
inviteCode
=
object
.
optString
(
"code"
);
if
(!
TextUtils
.
isEmpty
(
inviteCode
))
{
Cookie
.
save
(
getApplicationContext
(),
"code"
,
inviteCode
);
}
}
String
url
=
object
.
optString
(
"url"
);
LogUtil
.
d
(
"唤醒传过来的url="
+
url
);
String
title
=
URLDecoder
.
decode
(
object
.
optString
(
"title"
),
"UTF-8"
);
LogUtil
.
d
(
"唤醒传过来的tile="
+
title
);
if
(!
TextUtils
.
isEmpty
(
url
)
&&
!
TextUtils
.
isEmpty
(
title
))
{
intent
.
putExtra
(
"to"
,
"webView"
);
intent
.
putExtra
(
"url"
,
url
);
intent
.
putExtra
(
"title"
,
title
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
startActivity
(
intent
);
finish
();
};
}
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
View file @
e53f2442
...
...
@@ -1066,11 +1066,9 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
CityPickerBean
bean
=
new
Gson
().
fromJson
(
json
,
CityPickerBean
.
class
);
for
(
CityPickerBean
.
CityBean
cityBean
:
bean
.
getCity
())
{
for
(
ListsBean
lsBean
:
cityBean
.
getLists
())
{
if
(
starCity
.
equals
(
lsBean
.
getName
()))
{
if
(
!
TextUtils
.
isEmpty
(
starCity
)
&&
starCity
.
equals
(
lsBean
.
getName
()))
{
dataBean
.
setStartCity
(
lsBean
.
getId
());
}
if
(
endCity
.
equals
(
lsBean
.
getName
()))
{
}
else
if
(!
TextUtils
.
isEmpty
(
endCity
)
&&
endCity
.
equals
(
lsBean
.
getName
()))
{
dataBean
.
setEndCity
(
lsBean
.
getId
());
}
}
...
...
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