mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fixed all the typos
This commit is contained in:
parent
2b1561bef5
commit
5603b44d8a
3 changed files with 5 additions and 5 deletions
|
|
@ -213,7 +213,7 @@ class ImageFragment :
|
|||
): View? {
|
||||
_binding = FragmentCustomSelectorBinding.inflate(inflater, container, false)
|
||||
|
||||
// ensuress imageAdapter is initialized
|
||||
// ensures imageAdapter is initialized
|
||||
if (!::imageAdapter.isInitialized) {
|
||||
imageAdapter = ImageAdapter(requireActivity(), activity as ImageSelectListener, imageLoader!!)
|
||||
Timber.d("Initialized imageAdapter in onCreateView")
|
||||
|
|
@ -401,7 +401,7 @@ class ImageFragment :
|
|||
(selectorRV?.layoutManager as? GridLayoutManager)
|
||||
?.findFirstVisibleItemPosition() ?: -1
|
||||
|
||||
// cheeck for valid position and non-empty image list
|
||||
// check for valid position and non-empty image list
|
||||
if (position != -1 && filteredImages.isNotEmpty() && ::imageAdapter.isInitialized) {
|
||||
context?.let { context ->
|
||||
context
|
||||
|
|
|
|||
|
|
@ -580,12 +580,12 @@ class UploadActivity : BaseActivity(), UploadContract.View, UploadBaseFragment.C
|
|||
}
|
||||
}
|
||||
|
||||
// unregisteer location manager after loop if needed
|
||||
// unregister location manager after loop if needed
|
||||
if (!uploadIsOfAPlace) {
|
||||
locationManager!!.unregisterLocationManager()
|
||||
}
|
||||
|
||||
//If fragments are not created, create them and add them to the fragments ArrayList
|
||||
// If fragments are not created, create them and add them to the fragments ArrayList
|
||||
if (!isFragmentsSaved) {
|
||||
uploadCategoriesFragment = UploadCategoriesFragment()
|
||||
if (place != null) {
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ class UploadMediaDetailFragment : UploadBaseFragment(), UploadMediaDetailsContra
|
|||
|
||||
basicKvStore = BasicKvStore(requireActivity(), "CurrentUploadImageQualities")
|
||||
|
||||
// restoree adapter items from savedInstanceState if available
|
||||
// restore adapter items from savedInstanceState if available
|
||||
if (savedInstanceState != null) {
|
||||
val savedItems = savedInstanceState.getParcelableArrayList<UploadMediaDetail>(UPLOAD_MEDIA_DETAILS)
|
||||
Timber.d("Restoring state: savedItems size = %s", savedItems?.size ?: "null")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue