mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 14:21:16 +00:00
commit
8d6ce42297
3 changed files with 7 additions and 3 deletions
|
@ -38,7 +38,9 @@ public class DeviceListFragment extends ListFragment implements SyncthingService
|
|||
@Override
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
mTimer.cancel();
|
||||
if (mTimer != null) {
|
||||
mTimer.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -138,7 +138,7 @@ public class FolderFragment extends Fragment
|
|||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent(getActivity(), FolderPickerActivity.class);
|
||||
if (mFolder.path.length() > 0) {
|
||||
if (!TextUtils.isEmpty(mFolder.path)) {
|
||||
intent.putExtra(FolderPickerActivity.EXTRA_INITIAL_DIRECTORY, mFolder.path);
|
||||
}
|
||||
startActivityForResult(intent, DIRECTORY_REQUEST_CODE);
|
||||
|
|
|
@ -46,7 +46,9 @@ public class FolderListFragment extends ListFragment implements SyncthingService
|
|||
@Override
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
mTimer.cancel();
|
||||
if (mTimer != null) {
|
||||
mTimer.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue