Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Drjacky committed Jun 25, 2020
1 parent ddbbbd1 commit 7e4e82d
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 3 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
3 changes: 3 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions .idea/navEditor.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package ir.hosseinabbasi.mvvm.di
package ir.hosseinabbasi.mvvm.di.component

import dagger.Component
import dagger.android.AndroidInjector
import dagger.android.support.AndroidSupportInjectionModule
import ir.hosseinabbasi.mvvm.MyApplication
import ir.hosseinabbasi.mvvm.di.AppModule
import ir.hosseinabbasi.mvvm.di.MainModule
import ir.hosseinabbasi.mvvm.di.ViewModelModule
import ir.hosseinabbasi.mvvm.di.home.HomeModule
import javax.inject.Singleton

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ class AlbumListAdapter : PagedListAdapter<Entity.Album, AlbumListAdapter.DataHol
}

override fun onBindViewHolder(holder: DataHolder, position: Int) {
val album = getItem(position)
album?.let { holder.bind(album) }
val photoResult = getItem(position)
photoResult?.let {
holder.bind(photoResult)
}
}

inner class DataHolder(private var itemAlbumBinding: ItemAlbumBinding) : RecyclerView.ViewHolder
Expand Down

0 comments on commit 7e4e82d

Please sign in to comment.