Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

App crash when request permission in Huawei Honor 7 #281

Open
@zzulevi

Description

@zzulevi

Basic Information

Device type: Huawei Honor 7
OS version: 6.0
EasyPermissions version: 2.0.1

Describe the problem

App crash when request permission in Activity onCreate, if use ActivityCompat API, it can run correctly.

Code and logs

@Override
 protected void onCreate(Bundle savedInstanceState) {
       if(!EasyPermissions.hasPermissions(this, permissions)){
       ...............
       }
}
04-02 11:51:11.141 6471-6471/? I/art: Late-enabling -Xcheck:jni
04-02 11:51:11.198 6471-6484/cn.joeyan.helloworld E/HAL: load: id=gralloc != hmi->id=gralloc
04-02 11:51:11.233 6471-6471/cn.joeyan.helloworld I/HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl
04-02 11:51:11.243 6471-6471/cn.joeyan.helloworld W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
04-02 11:51:11.274 6471-6471/cn.joeyan.helloworld I/art: Rejecting re-init on previously-failed class java.lang.Class<android.support.v4.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>
04-02 11:51:11.274 6471-6471/cn.joeyan.helloworld I/art: Rejecting re-init on previously-failed class java.lang.Class<android.support.v4.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>
04-02 11:51:11.659 6471-6471/cn.joeyan.helloworld I/Process: Sending signal. PID: 6471 SIG: 9

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions