/android/import-contacts

To get this branch, use:
bzr branch http://bzr.ed.am/android/import-contacts

« back to all changes in this revision

Viewing changes to src/am/ed/importcontacts/FileChooser.java

  • Committer: Tim Marston
  • Date: 2013-06-22 17:29:31 UTC
  • Revision ID: tim@ed.am-20130622172931-ujydoni23t3a543b
minor style tweaks

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * Copyright (C) 2010 Tim Marston <tim@ed.am>
5
5
 *
6
6
 * This file is part of the Import Contacts program (hereafter referred
7
 
 * to as "this program"). For more information, see
 
7
 * to as "this program").  For more information, see
8
8
 * http://ed.am/dev/android/import-contacts
9
9
 *
10
10
 * This program is free software: you can redistribute it and/or modify
247
247
                }
248
248
        };
249
249
 
250
 
        private OnItemClickListener _fileChooserItemClickListener = new OnItemClickListener() {
251
 
                public void onItemClick( AdapterView< ? > adapter_view, View view, int position, long id )
 
250
        private OnItemClickListener _fileChooserItemClickListener =
 
251
                        new OnItemClickListener() {
 
252
                public void onItemClick( AdapterView< ? > adapter_view, View view,
 
253
                        int position, long id )
252
254
                {
253
255
                        RowItem rowitem = _items.get( position );
254
256
 
368
370
                if( path.startsWith( _path_prefix + "/" ) )
369
371
                        path = path.substring( _path_prefix.length() );
370
372
 
371
 
                // unless path is "/", strip trailing "/".
 
373
                // unless path is "/", strip trailing "/"
372
374
                if( path.length() > 1 && path.endsWith( "/" ) )
373
375
                        path = path.substring( 0, path.length() - 1 );
374
376