Skip to content

Commit fb9c18b

Browse files
authored
Merge pull request #982 from Benjiko99/develop
Correct typos in comments and create a dictionary
2 parents 9490e17 + ac220ab commit fb9c18b

File tree

23 files changed

+101
-43
lines changed

23 files changed

+101
-43
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ proguard/
2828

2929
#IntelliJ files
3030
*.iml
31-
.idea/
31+
.idea/*
32+
!.idea/dictionaries
3233

33-
*.DS_STORE
34+
*.DS_STORE

.idea/dictionaries/benji.xml

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CONTRIBUTORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FastAdapter contributors (sorted alphabeticaly)
1+
FastAdapter contributors (sorted alphabetically)
22
============================================
33

44
* **[Fabian Terhorst](https://github.com/FabianTerhorst)**

MIGRATION.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int, pa
2424

2525
#### v4.x.y
2626

27-
v4 is a huge release changing most of the codebase to Kotlin. This comes with many refactors, and as a result of that with many breaking API changes.
28-
We put a lot of focus on type safety with this release, as such this release is a lot more strict and tries to prevent as many potential bad type mixups as possible.
27+
v4 is a huge release changing most of the codebase to Kotlin. This comes with many refactorings, and as a result of that with many breaking API changes.
28+
We put a lot of focus on type safety with this release, as such this release is a lot more strict and tries to prevent as many potential bad type mix-ups as possible.
2929

3030
* For compatibility, most existing static fields and functions remain static in Java. For newer functions, accessing from Java may require using the `Companion` class. For instance, `FastAdapter.example()` becomes `FastAdapter.Companion.example()`
3131
* The `IItem` interface now requires a type specification. E.g. `IItem<RecyclerView.ViewHolder>`
@@ -57,7 +57,7 @@ If you have any issues during the migration, or any questions come up please ope
5757
* Further details about migrating to androidX and a overview can be found on the official docs. https://developer.android.com/topic/libraries/support-library/refactor
5858

5959
#### v3.2.4
60-
* Adjusted the `set(int position, Item item, int preItemCount)` to include the `preItemCount` to corretly notify the adapter about the changed element.
60+
* Adjusted the `set(int position, Item item, int preItemCount)` to include the `preItemCount` to correctly notify the adapter about the changed element.
6161

6262
#### v3.2.3
6363
* The `ActionModeHelper` requires a `FastAdapter` with the `SelectExtension` applied. This is done in current versions via `withSelectable(true)`. Make sure this is called before creating the `ActionModeHelper`.
@@ -156,17 +156,17 @@ public ViewHolder getViewHolder(View v) {
156156

157157
**SHORT OVERVIEW**
158158
* If you have items implemented by using the interface you have to implement the new methods (**unbindView**)
159-
* If you have expandable items make sure to adjust the Model type definitions as metioned below. Check out the `AbstractExpandableItem` to simplify this for you
159+
* If you have expandable items make sure to adjust the Model type definitions as mentioned below. Check out the `AbstractExpandableItem` to simplify this for you
160160
* If you use the `MaterialDrawer`, the `AboutLibraries` in your project, please make sure to update them so the changed interfaces do not cause conflicts
161161

162162
**DETAILED**
163163
* New `unbindView` method was added to the `IItem` --> This method is called when the current item is no longer set and before the `ViewHolder` is used for the next item
164164
* You should move your view resetting logic here, or for example glide image loading canceling
165165
* `IExpandable` Model types changes
166-
* it is now required to define the type which will be used for the subItems. This can be an implementation or `ISubItem`. We now require this, as we will keep the references between childs, and parents.
166+
* it is now required to define the type which will be used for the subItems. This can be an implementation or `ISubItem`. We now require this, as we will keep the references between children, and parents.
167167
* this allows more optimizations, and many additional usecases
168168
* New `ISubItem` interface added
169-
* items serving as subitems, have to implement this.
169+
* items serving as subItems, have to implement this.
170170
* New `AbstractExpandableItem` added, which combines `IExpandable` and `ISubItem` with an `AbstractItem` to simplify your life
171171
* A new `SubItemUtil` was introduced which simplifies some use cases when working with expandable / collapsing lists
172172

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# FastAdapter
22

33
The FastAdapter is here to simplify creating adapters for RecyclerViews. Don't worry about the adapter anymore. Just write the logic for how your view/item should look like, and you are done.
4-
It's blazingly fast, minimizing the code you need to write, and is easy to extend.
4+
It's blazing fast, minimizing the code you need to write, and is easy to extend.
55

66
-------
77

app/src/main/java/com/mikepenz/fastadapter/app/AdvancedSampleActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import java.util.*
2828
import java.util.concurrent.atomic.AtomicLong
2929

3030
/**
31-
* This sample showcases compatibility the awesome Sticky-Headers library by timehop
31+
* This sample showcases compatibility with the awesome Sticky-Headers library by timehop
3232
* https://github.com/timehop/sticky-headers-recyclerview
3333
*/
3434
class AdvancedSampleActivity : AppCompatActivity() {
@@ -82,7 +82,7 @@ class AdvancedSampleActivity : AppCompatActivity() {
8282
if (item is IExpandable<*> && item.subItems.isNotEmpty()) {
8383
true
8484
} else {
85-
//handle the longclick actions
85+
//handle the long click actions
8686
val actionMode = mActionModeHelper?.onLongClick(this@AdvancedSampleActivity, position)
8787
if (actionMode != null) {
8888
//we want color our CAB

app/src/main/java/com/mikepenz/fastadapter/app/DiffUtilActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class DiffUtilActivity : AppCompatActivity() {
6363

6464
override fun onSaveInstanceState(_outState: Bundle) {
6565
var outState = _outState
66-
//add the values which need to be saved from the adapter to the bundel
66+
//add the values which need to be saved from the adapter to the bundle
6767
outState = fastItemAdapter.saveInstanceState(outState)
6868
super.onSaveInstanceState(outState)
6969
}

app/src/main/java/com/mikepenz/fastadapter/app/ExpandableMultiselectDeleteSampleActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class ExpandableMultiselectDeleteSampleActivity : AppCompatActivity() {
128128
.identifier = (i + 1).toLong()
129129
//.withIsExpanded(true) don't use this in such a setup, use adapter.expand() to expand all items instead
130130

131-
//add subitems so we can showcase the collapsible functionality
131+
//add subItems so we can showcase the collapsible functionality
132132
val subItems = LinkedList<ISubItem<*>>()
133133
for (ii in 1..5) {
134134
val sampleItem = SimpleSubItem()
@@ -159,7 +159,7 @@ class ExpandableMultiselectDeleteSampleActivity : AppCompatActivity() {
159159
val headerItem = item.parent
160160
if (headerItem != null) {
161161
val pos = fastItemAdapter.getAdapterPosition(headerItem)
162-
// Important: notify the header directly, not via the notifyadapterItemChanged!
162+
// Important: notify the header directly, not via the notifyAdapterItemChanged!
163163
// we just want to update the view and we are sure, nothing else has to be done
164164
fastItemAdapter.notifyItemChanged(pos)
165165
}

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@
4545
<string name="sample_diff_util">Diff Util Sample</string>
4646
<string name="sample_diff_util_descr">Diff Util, refresh list using DiffUtil</string>
4747
<string name="open_source">Open Source</string>
48-
<string name="search_title">Suche</string>
48+
<string name="search_title">Search</string>
4949
<string name="action_undo">UNDO</string>
5050
</resources>

fastadapter-extensions-expandable/src/main/java/com/mikepenz/fastadapter/utils/AdapterUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ object AdapterUtil {
5353
* Gets all items (including sub items) from the FastAdapter
5454
*
5555
* @param fastAdapter the FastAdapter
56-
* @return a list of all items including the whole subItem hirachy
56+
* @return a list of all items including the whole subItem hierarchy
5757
*/
5858
@JvmStatic fun <Item> getAllItems(fastAdapter: FastAdapter<Item>): List<Item> where Item : GenericItem, Item : IExpandable<*> {
5959
val size = fastAdapter.itemCount

0 commit comments

Comments
 (0)