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
e050c47d
Commit
e050c47d
authored
Jul 10, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改个人资料拍照修剪图片闪退的问题
parent
904aaa69
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
RvClientApplication.java
RvClient/src/main/java/com/xxfc/rv/RvClientApplication.java
+7
-2
PersonalInformationActivity.java
...a/com/rv/rvmine/traveler/PersonalInformationActivity.java
+1
-1
update_file_paths.xml
plugin_version/src/main/res/xml/update_file_paths.xml
+1
-1
No files found.
RvClient/src/main/java/com/xxfc/rv/RvClientApplication.java
View file @
e050c47d
...
...
@@ -2,6 +2,7 @@ package com.xxfc.rv;
import
android.app.Activity
;
import
android.os.StrictMode
;
import
com.alibaba.android.arouter.launcher.ARouter
;
import
com.baidu.mapapi.CoordType
;
...
...
@@ -42,6 +43,11 @@ public class RvClientApplication extends FrameApp {
@Override
public
void
onCreate
()
{
super
.
onCreate
();
StrictMode
.
VmPolicy
.
Builder
builder
=
new
StrictMode
.
VmPolicy
.
Builder
();
StrictMode
.
setVmPolicy
(
builder
.
build
());
builder
.
detectFileUriExposure
();
CrashHandler
.
getInstance
().
init
(
this
);
// 在使用 SDK 各组间之前初始化 context 信息,传入 ApplicationContext
SDKInitializer
.
initialize
(
this
);
...
...
@@ -80,7 +86,7 @@ public class RvClientApplication extends FrameApp {
// ModuleUtil.register();
if
(
isDedugARouter
){
if
(
isDedugARouter
)
{
ARouter
.
openLog
();
ARouter
.
openDebug
();
}
...
...
@@ -129,7 +135,6 @@ public class RvClientApplication extends FrameApp {
}
private
void
initAuto
()
{
//当 App 中出现多进程, 并且您需要适配所有的进程, 就需要在 App 初始化时调用 initCompatMultiProcess()
...
...
module_mine/src/main/java/com/rv/rvmine/traveler/PersonalInformationActivity.java
View file @
e050c47d
...
...
@@ -157,7 +157,7 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
}
else
if
(
requestCode
==
mPresenter
.
TYPE_CAMERA_CODE
)
{
mPresenter
.
cropPhoto
(
Uri
.
fromFile
(
new
File
(
mPresenter
.
gerCameraStoreUrl
())));
}
else
if
(
requestCode
==
mPresenter
.
TYPE_CROP_CODE
)
{
String
url
=
String
.
format
(
"%1$s%2$s"
,
"file://"
,
mPresenter
.
gerCameraStoreUrl
()
);
String
url
=
mPresenter
.
gerCameraStoreUrl
(
);
GlideManager
.
getInstance
(
mActivity
).
loadImage
(
url
,
ivAvatar
);
uploadFile
(
new
File
(
mPresenter
.
gerCameraStoreUrl
()),
"camera"
);
}
...
...
plugin_version/src/main/res/xml/update_file_paths.xml
View file @
e050c47d
...
...
@@ -5,7 +5,7 @@
<cache-path
name=
"cache-path"
path=
""
/>
<external-path
name=
"external-path"
path=
"photo"
/>
<external-path
name=
"external-path"
path=
"photo
/camera
"
/>
<external-files-path
name=
"external-files-path"
path=
""
/>
...
...
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