diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2014-08-04 00:24:48 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2014-08-04 00:42:20 +0200 |
commit | db2e0b21ed59cac88fc5ae33ae3d53604bee3fe2 (patch) | |
tree | 76ccbfe4591249093e37523d2c3bf2805b8e74c4 /main/thirdparty/android | |
parent | 487b3308f3c93ad349d7d732ff410e7f463c9322 (diff) | |
download | cgeo-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.java | 10 |
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); } /** |