srctree

Robin Linden parent 2a5e8e99 9e714890
Manually fix the remaining experimental ktlint warnings

inlinesplit
atox/src/main/kotlin/di/ViewModelModule.kt added: 36, removed: 36, total 0
@@ -13,12 +13,12 @@ import kotlin.reflect.KClass
import ltd.evilcorp.atox.ui.addcontact.AddContactViewModel
import ltd.evilcorp.atox.ui.call.CallViewModel
import ltd.evilcorp.atox.ui.chat.ChatViewModel
import ltd.evilcorp.atox.ui.contact_profile.ContactProfileViewModel
import ltd.evilcorp.atox.ui.contactlist.ContactListViewModel
import ltd.evilcorp.atox.ui.create_profile.CreateProfileViewModel
import ltd.evilcorp.atox.ui.friend_request.FriendRequestViewModel
import ltd.evilcorp.atox.ui.contactprofile.ContactProfileViewModel
import ltd.evilcorp.atox.ui.createprofile.CreateProfileViewModel
import ltd.evilcorp.atox.ui.friendrequest.FriendRequestViewModel
import ltd.evilcorp.atox.ui.settings.SettingsViewModel
import ltd.evilcorp.atox.ui.user_profile.UserProfileViewModel
import ltd.evilcorp.atox.ui.userprofile.UserProfileViewModel
 
@MustBeDocumented
@Target(
 
atox/src/main/kotlin/ui/contactlist/ContactListFragment.kt added: 36, removed: 36, total 0
@@ -40,7 +40,7 @@ import ltd.evilcorp.atox.ui.BaseFragment
import ltd.evilcorp.atox.ui.ReceiveShareDialog
import ltd.evilcorp.atox.ui.chat.CONTACT_PUBLIC_KEY
import ltd.evilcorp.atox.ui.colorFromStatus
import ltd.evilcorp.atox.ui.friend_request.FRIEND_REQUEST_PUBLIC_KEY
import ltd.evilcorp.atox.ui.friendrequest.FRIEND_REQUEST_PUBLIC_KEY
import ltd.evilcorp.atox.vmFactory
import ltd.evilcorp.core.vo.ConnectionStatus
import ltd.evilcorp.core.vo.Contact
 
atox/src/main/kotlin/ui/contact_profile/ContactProfileFragment.kt added: 36, removed: 36, total 0
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: GPL-3.0-only
 
package ltd.evilcorp.atox.ui.contact_profile
package ltd.evilcorp.atox.ui.contactprofile
 
import android.os.Bundle
import android.view.View
 
atox/src/main/kotlin/ui/contact_profile/ContactProfileViewModel.kt added: 36, removed: 36, total 0
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: GPL-3.0-only
 
package ltd.evilcorp.atox.ui.contact_profile
package ltd.evilcorp.atox.ui.contactprofile
 
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
 
atox/src/main/kotlin/ui/create_profile/CreateProfileFragment.kt added: 36, removed: 36, total 0
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: GPL-3.0-only
 
package ltd.evilcorp.atox.ui.create_profile
package ltd.evilcorp.atox.ui.createprofile
 
import android.os.Bundle
import android.text.method.PasswordTransformationMethod
 
atox/src/main/kotlin/ui/create_profile/CreateProfileViewModel.kt added: 36, removed: 36, total 0
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: GPL-3.0-only
 
package ltd.evilcorp.atox.ui.create_profile
package ltd.evilcorp.atox.ui.createprofile
 
import android.content.ContentResolver
import android.net.Uri
 
atox/src/main/kotlin/ui/friend_request/FriendRequestFragment.kt added: 36, removed: 36, total 0
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: GPL-3.0-only
 
package ltd.evilcorp.atox.ui.friend_request
package ltd.evilcorp.atox.ui.friendrequest
 
import android.os.Bundle
import android.view.View
 
atox/src/main/kotlin/ui/friend_request/FriendRequestViewModel.kt added: 36, removed: 36, total 0
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: GPL-3.0-only
 
package ltd.evilcorp.atox.ui.friend_request
package ltd.evilcorp.atox.ui.friendrequest
 
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
 
atox/src/main/kotlin/ui/settings/SettingsFragment.kt added: 36, removed: 36, total 0
@@ -37,7 +37,7 @@ import ltd.evilcorp.domain.tox.ProxyType
 
private fun Spinner.onItemSelectedListener(callback: (Int) -> Unit) {
this.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {
override fun onNothingSelected(parent: AdapterView<*>?) { /* Do nothing. */ }
override fun onNothingSelected(parent: AdapterView<*>?) {}
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
callback(position)
}
 
atox/src/main/kotlin/ui/user_profile/UserProfileFragment.kt added: 36, removed: 36, total 0
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: GPL-3.0-only
 
package ltd.evilcorp.atox.ui.user_profile
package ltd.evilcorp.atox.ui.userprofile
 
import android.content.ClipData
import android.content.ClipboardManager
 
atox/src/main/kotlin/ui/user_profile/UserProfileViewModel.kt added: 36, removed: 36, total 0
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: GPL-3.0-only
 
package ltd.evilcorp.atox.ui.user_profile
package ltd.evilcorp.atox.ui.userprofile
 
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
 
atox/src/main/res/layout/fragment_contact_profile.xml added: 36, removed: 36, total 0
@@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".ui.contact_profile.ContactProfileFragment">
tools:context=".ui.contactprofile.ContactProfileFragment">
<com.google.android.material.appbar.AppBarLayout android:id="@+id/appBar"
android:layout_width="match_parent"
android:layout_height="128dp"
 
atox/src/main/res/layout/fragment_friend_request.xml added: 36, removed: 36, total 0
@@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".ui.friend_request.FriendRequestFragment">
tools:context=".ui.friendrequest.FriendRequestFragment">
<androidx.appcompat.widget.Toolbar android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
 
atox/src/main/res/layout/fragment_user_profile.xml added: 36, removed: 36, total 0
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="ltd.evilcorp.atox.ui.user_profile.UserProfileFragment">
tools:context="ltd.evilcorp.atox.ui.userprofile.UserProfileFragment">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
 
atox/src/main/res/navigation/nav_graph.xml added: 36, removed: 36, total 0
@@ -5,7 +5,7 @@
android:id="@+id/nav_graph"
app:startDestination="@id/contactListFragment">
<fragment android:id="@+id/profileFragment"
android:name="ltd.evilcorp.atox.ui.create_profile.CreateProfileFragment"
android:name="ltd.evilcorp.atox.ui.createprofile.CreateProfileFragment"
android:label="ProfileFragment"
tools:layout="@layout/fragment_profile"/>
 
@@ -69,7 +69,7 @@
</fragment>
 
<fragment android:id="@+id/friendRequestFragment"
android:name="ltd.evilcorp.atox.ui.friend_request.FriendRequestFragment"
android:name="ltd.evilcorp.atox.ui.friendrequest.FriendRequestFragment"
android:label="FriendRequestFragment"
tools:layout="@layout/fragment_friend_request"/>
 
@@ -101,7 +101,7 @@
</fragment>
 
<fragment android:id="@+id/contactProfileFragment"
android:name="ltd.evilcorp.atox.ui.contact_profile.ContactProfileFragment"
android:name="ltd.evilcorp.atox.ui.contactprofile.ContactProfileFragment"
android:label="contact_profile_fragment"
tools:layout="@layout/fragment_contact_profile"/>
 
@@ -111,7 +111,7 @@
tools:layout="@layout/fragment_settings"/>
<fragment
android:id="@+id/userProfileFragment"
android:name="ltd.evilcorp.atox.ui.user_profile.UserProfileFragment"
android:name="ltd.evilcorp.atox.ui.userprofile.UserProfileFragment"
android:label="fragment_user_profile"
tools:layout="@layout/fragment_user_profile"/>
</navigation>