1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 03:11:30 +00:00

Fixing oversights.

This commit is contained in:
George Venios 2015-09-12 13:25:21 +01:00
parent a76bc00eb9
commit bb9cd5bf1c
2 changed files with 4 additions and 2 deletions

View file

@ -225,7 +225,9 @@ public class FolderPickerActivity extends SyncthingActivity
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
File f = mFilesAdapter.getItem(i);
@SuppressWarnings("unchecked")
ArrayAdapter<File> adapter = (ArrayAdapter<File>) mListView.getAdapter();
File f = adapter.getItem(i);
if (f.isDirectory()) {
displayFolder(f);
invalidateOptions();

View file

@ -7,6 +7,6 @@
android:id="@+id/add_folder"
android:icon="@drawable/ic_add_white_24dp_active"
android:title="@string/add_folder"
app:showAsAction="never" />
app:showAsAction="ifRoom" />
</menu>