diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-16 11:41:07 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-16 11:45:43 +0100 |
commit | 1816bdd1965a8395e8878462e5c7693591327888 (patch) | |
tree | 90ee6d0120b11866b3e0948398e592636150dc56 /android | |
parent | 2e0c474ab53325445c6dbac9aaeeafe5bb596e3f (diff) |
android: Adpater -> Adapter
Change-Id: If5297d641b4a596f20bdde8203f199d8efcb92fe
Diffstat (limited to 'android')
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/DocumentPartViewListAdapter.java (renamed from android/experimental/LOAndroid3/src/java/org/libreoffice/DocumentPartViewListAdpater.java) | 6 | ||||
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java | 2 | ||||
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java | 14 | ||||
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/MockTileProvider.java | 4 |
4 files changed, 13 insertions, 13 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/DocumentPartViewListAdpater.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/DocumentPartViewListAdapter.java index 067d44d2c2f8..d25cccb0e46e 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/DocumentPartViewListAdpater.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/DocumentPartViewListAdapter.java @@ -11,12 +11,12 @@ import android.widget.TextView; import java.util.List; -public class DocumentPartViewListAdpater extends ArrayAdapter<DocumentPartView> { - private static final String LOGTAG = DocumentPartViewListAdpater.class.getSimpleName(); +public class DocumentPartViewListAdapter extends ArrayAdapter<DocumentPartView> { + private static final String LOGTAG = DocumentPartViewListAdapter.class.getSimpleName(); private final Activity activity; - public DocumentPartViewListAdpater(Activity activity, int resource, List<DocumentPartView> objects) { + public DocumentPartViewListAdapter(Activity activity, int resource, List<DocumentPartView> objects) { super(activity, resource, objects); this.activity = activity; } diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java index b61c6ca5a47f..82908e1cd533 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java @@ -91,7 +91,7 @@ public class LOKitTileProvider implements TileProvider { LOKitShell.getMainHandler().post(new Runnable() { @Override public void run() { - LibreOfficeMainActivity.mAppContext.getDocumentPartViewListAdpater().notifyDataSetChanged(); + LibreOfficeMainActivity.mAppContext.getDocumentPartViewListAdapter().notifyDataSetChanged(); } }); } diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java index 991a1533a674..ccb864b98f33 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java @@ -40,7 +40,7 @@ public class LibreOfficeMainActivity extends Activity { private RelativeLayout mGeckoLayout; private ListView mDrawerList; private List<DocumentPartView> mDocumentPartView = new ArrayList<DocumentPartView>(); - private DocumentPartViewListAdpater mDocumentPartViewListAdpater; + private DocumentPartViewListAdapter mDocumentPartViewListAdapter; private String mInputFile; public static GeckoLayerClient getLayerClient() { @@ -106,11 +106,11 @@ public class LibreOfficeMainActivity extends Activity { mGeckoLayout = (RelativeLayout) findViewById(R.id.gecko_layout); mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); - if (mDocumentPartViewListAdpater == null) { + if (mDocumentPartViewListAdapter == null) { mDrawerList = (ListView) findViewById(R.id.left_drawer); - mDocumentPartViewListAdpater = new DocumentPartViewListAdpater(this, R.layout.document_part_list_layout, mDocumentPartView); - mDrawerList.setAdapter(mDocumentPartViewListAdpater); + mDocumentPartViewListAdapter = new DocumentPartViewListAdapter(this, R.layout.document_part_list_layout, mDocumentPartView); + mDrawerList.setAdapter(mDocumentPartViewListAdapter); mDrawerList.setOnItemClickListener(new DocumentPartClickListener()); } @@ -169,8 +169,8 @@ public class LibreOfficeMainActivity extends Activity { return mDocumentPartView; } - public DocumentPartViewListAdpater getDocumentPartViewListAdpater() { - return mDocumentPartViewListAdpater; + public DocumentPartViewListAdapter getDocumentPartViewListAdapter() { + return mDocumentPartViewListAdapter; } private void showAbout() { @@ -237,7 +237,7 @@ public class LibreOfficeMainActivity extends Activity { private class DocumentPartClickListener implements android.widget.AdapterView.OnItemClickListener { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { - DocumentPartView partView = mDocumentPartViewListAdpater.getItem(position); + DocumentPartView partView = mDocumentPartViewListAdapter.getItem(position); LOKitShell.sendEvent(LOEventFactory.changePart(partView.getPartIndex())); mDrawerLayout.closeDrawer(mDrawerList); } diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/MockTileProvider.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/MockTileProvider.java index 8fd51b8ca8c6..e6070479671e 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/MockTileProvider.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/MockTileProvider.java @@ -19,12 +19,12 @@ public class MockTileProvider implements TileProvider { for (int i = 0; i < 5; i++) { String partName = "Part " + i; DocumentPartView partView = new DocumentPartView(i, partName, null); - LibreOfficeMainActivity.mAppContext.getDocumentPartViewListAdpater().add(partView); + LibreOfficeMainActivity.mAppContext.getDocumentPartViewListAdapter().add(partView); } LibreOfficeMainActivity.mAppContext.mMainHandler.post(new Runnable() { @Override public void run() { - LibreOfficeMainActivity.mAppContext.getDocumentPartViewListAdpater().notifyDataSetChanged(); + LibreOfficeMainActivity.mAppContext.getDocumentPartViewListAdapter().notifyDataSetChanged(); } }); } |