aboutsummaryrefslogtreecommitdiffstats
path: root/main/thirdparty/android
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-08-04 00:24:48 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-08-04 00:42:20 +0200
commitdb2e0b21ed59cac88fc5ae33ae3d53604bee3fe2 (patch)
tree76ccbfe4591249093e37523d2c3bf2805b8e74c4 /main/thirdparty/android
parent487b3308f3c93ad349d7d732ff410e7f463c9322 (diff)
downloadcgeo-db2e0b21ed59cac88fc5ae33ae3d53604bee3fe2.zip
cgeo-db2e0b21ed59cac88fc5ae33ae3d53604bee3fe2.tar.gz
cgeo-db2e0b21ed59cac88fc5ae33ae3d53604bee3fe2.tar.bz2
Make method synchronized instead of block
Diffstat (limited to 'main/thirdparty/android')
-rw-r--r--main/thirdparty/android/support/v4/app/FragmentListActivity.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/main/thirdparty/android/support/v4/app/FragmentListActivity.java b/main/thirdparty/android/support/v4/app/FragmentListActivity.java
index a7f8880..9641249 100644
--- a/main/thirdparty/android/support/v4/app/FragmentListActivity.java
+++ b/main/thirdparty/android/support/v4/app/FragmentListActivity.java
@@ -254,12 +254,10 @@ public class FragmentListActivity extends FragmentActivity {
/**
* Provide the cursor for the list view.
*/
- public void setListAdapter(final ListAdapter adapter) {
- synchronized (this) {
- ensureList();
- mAdapter = adapter;
- mList.setAdapter(adapter);
- }
+ public synchronized void setListAdapter(final ListAdapter adapter) {
+ ensureList();
+ mAdapter = adapter;
+ mList.setAdapter(adapter);
}
/**