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:
parent
a76bc00eb9
commit
bb9cd5bf1c
2 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue