Skip to content

Commit

Permalink
fix camera for BB6
Browse files Browse the repository at this point in the history
  • Loading branch information
genywind authored and dmitrys committed Jul 12, 2011
1 parent b25dd69 commit 133b43c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions platform/bb/rhodes/src/rhomobile/camera/CameraFilesListener.java
Expand Up @@ -27,7 +27,9 @@ public class CameraFilesListener implements FileSystemJournalListener {

private final String[] _folders = {
"file:///store/home/user/pictures/",
"file:///sdcard/blackberry/pictures/"
"file:///sdcard/blackberry/pictures/",
"file:///store/home/user/camera/",
"file:///sdcard/blackberry/camera/"
};

public CameraFilesListener(CameraScreen screen) {
Expand Down Expand Up @@ -72,8 +74,16 @@ public void fileJournalChanged() {
continue;

String lpath = path.toLowerCase();
if (!lpath.startsWith("file:///sdcard/blackberry/pictures/") &&
!lpath.startsWith("file:///store/home/user/pictures/"))
boolean bKnownFolder = false;
for( int i = 0; i < _folders.length; i++)
{
if ( lpath.startsWith(_folders[i]))
{
bKnownFolder = true;
break;
}
}
if (!bKnownFolder)
continue;

if (lpath.endsWith(".dat"))
Expand Down

0 comments on commit 133b43c

Please sign in to comment.