Code Monkey home page Code Monkey logo

Comments (11)

hedzr avatar hedzr commented on June 10, 2024 1

it seems a bug there, i'll debug it tonight.

from android-file-chooser.

hedzr avatar hedzr commented on June 10, 2024

Can the parent of Environment.getExternalStorageDirectory().absolutePath be read or not? could you print its.canRead().
withNavigateTo & withNavigateUpTo follow the folder read and write permissions.

from android-file-chooser.

gswierczynski avatar gswierczynski commented on June 10, 2024

I will check it tomorrow, but I assumed that it is regression since navigating up works fine when I change version to 1.1.10

from android-file-chooser.

hedzr avatar hedzr commented on June 10, 2024

such being the case, expecting for more details. thanks.

from android-file-chooser.

gswierczynski avatar gswierczynski commented on June 10, 2024

Hi,

Sorry for the delay.

When using 1.1.11:
File(Environment.getExternalStorageDirectory().absolutePath) - canRead = true
File(Environment.getExternalStorageDirectory().absolutePath).parentFile - canRead = false

It is possible to navigate to one of the folders, but it is impossible to navigate up from it.

When using: 1.1.10:
File(Environment.getExternalStorageDirectory().absolutePath) - canRead = true
File(Environment.getExternalStorageDirectory().absolutePath).parentFile - canRead = false

It is possible to navigate up even from base directory.

Like I said, downgrading to 1.1.10 solves the issue.

from android-file-chooser.

hedzr avatar hedzr commented on June 10, 2024

@gswierczynski , do you mean you're going up from /sdcard? Anyway, i'd restricted the canRead() check. It prevents the further action at NON-canRead parent directory. So you can't navigate up to a folder if its.canRead() return false. And this is a feature, but v1.1.10 or below may lost it.

For: File(Environment.getExternalStorageDirectory().absolutePath).parentFile - canRead = false.
checker inside listDir(): ChooserDialog.java#L978

from android-file-chooser.

hedzr avatar hedzr commented on June 10, 2024

on v1.x, _list's focus cause the goBack() skip the real action. try the new patch on master:

implementation 'com.github.hedzr:android-file-chooser:bc584ab9e5'

it's a temporary patch. i hope it works without unexpected effects.

from android-file-chooser.

hedzr avatar hedzr commented on June 10, 2024

on 1.2.x, the fully fixes applied...

from android-file-chooser.

Kadanza avatar Kadanza commented on June 10, 2024

'com.github.hedzr:android-file-chooser:master-SNAPSHOT' dont work for me now.
I have unresolved reverence ChooserDialog.

Clear and rebuild dont help me.
com.github.hedzr:android-file-chooser:v1.1.11 I can import class, but there are no dialog.

In past com.github.hedzr:android-file-chooser:master-SNAPSHOT worked for me

from android-file-chooser.

hedzr avatar hedzr commented on June 10, 2024

for jitpack.io, these settings would be recommended:

buildscript {
  configurations.all {
      resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
      resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
  }
}

They will disable gradle cache for jitpack. Put them into your top level build.gradle, and File\Synchronize project with gradle files, and i hope it'll work as is.

In my local demo project, it works:

// might not work now and i have no idea:
// implementation 'com.github.hedzr:android-file-chooser:master-SNAPSHOT'
// Or, hashed-code works with my local demo:
implementation 'com.github.hedzr:android-file-chooser:d6aa2c4f1b'

please retry sync ... if downloading .pom and .jar failed.
good luck.

if you're still not lucky

one minute ago i just pushed v1.1.14 to jcenter with my newest master branch. it includes the patches since 1.1.11.
so, trying from jcenter:

implementation 'com.obsez.android.lib.filechooser:filechooser:1.1.14'

PS: wait a minute, it seems bad. i'm checking on jcenter.
1.1.14 or later ready.

good luck too.

from android-file-chooser.

hedzr avatar hedzr commented on June 10, 2024

should be closed.

from android-file-chooser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.