Skip to content

Weird state management in FirstRunActivity #4993

@Kilian-Perisset

Description

@Kilian-Perisset

Hi,

On the first start (without being connected), The FirstRunActivity is launched after a few Intents.
And, when you access this Activity, and lock your phone, and reopen it, you should go back to this "FirstRunActivity", but instead you're redirected directly to login and a thread crashes.

So why don't we redirect immediatly to FirstRunActivity through MainApp instead of passing from FileDisplayActivity, and why we don't relaunch this activity onRestart ? And why is it a MediaFolder detection before ANY connection (which fails and kill the thread)? :

2019-12-12 16:47:53.267 16477-25164/XXXXXXXXX E/JobExecutor: Crashed job{id=27, finished=true, result=FAILURE, canceled=false, periodic=true, class=MediaFoldersDetectionJob, tag=MediaFoldersDetectionJob}
    java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=16477, uid=10468 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
        at android.os.Parcel.createException(Parcel [...]

So, what is the "wanted" behaviour for the first launch ? And why do we pass through FileDisplayActivity without being connected ?

V. 3.9.2

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions