wordpress-mobile/PasscodeLock-Android

at times getting E/ViewSystem﹕ ViewRootImpl #2 Surface is not valid. on entering correct password

dmsherazi opened this issue · 1 comments

I am getting this error E/ViewSystem﹕ ViewRootImpl #2 Surface is not valid. after entering the correct password in unlock activity. I can see that the onResume method of the next activity starts by checking the logcat but the view doesn't change and the unlock activity is still shown

I am not sure if this is the solution but I guess I solved it by adding only enabling the lock on my launcher activity and disabling other activities.

 if (AppLockManager.getInstance().isAppLockFeatureEnabled()) {
        AppLockManager.getInstance().getCurrentAppLock()
             .setDisabledActivities(new String[]{" ...."});
    }