mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 11:21:29 +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
|
@Override
|
||||||
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
|
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()) {
|
if (f.isDirectory()) {
|
||||||
displayFolder(f);
|
displayFolder(f);
|
||||||
invalidateOptions();
|
invalidateOptions();
|
||||||
|
|
|
@ -7,6 +7,6 @@
|
||||||
android:id="@+id/add_folder"
|
android:id="@+id/add_folder"
|
||||||
android:icon="@drawable/ic_add_white_24dp_active"
|
android:icon="@drawable/ic_add_white_24dp_active"
|
||||||
android:title="@string/add_folder"
|
android:title="@string/add_folder"
|
||||||
app:showAsAction="never" />
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
</menu>
|
</menu>
|
||||||
|
|
Loading…
Reference in a new issue