Fixed package names for classes in presentation module

This commit is contained in:
Moez Bhatti
2018-03-22 22:37:03 -04:00
parent 7212983ffe
commit 436e514c33
124 changed files with 382 additions and 364 deletions
+25 -25
View File
@@ -21,7 +21,7 @@
android:theme="@style/AppThemeLight"> android:theme="@style/AppThemeLight">
<activity <activity
android:name="presentation.feature.main.MainActivity" android:name="feature.main.MainActivity"
android:launchMode="singleTask"> android:launchMode="singleTask">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
@@ -29,8 +29,8 @@
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity
android:name="presentation.feature.compose.ComposeActivity" android:name="feature.compose.ComposeActivity"
android:parentActivityName="presentation.feature.main.MainActivity"> android:parentActivityName="feature.main.MainActivity">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
@@ -57,31 +57,31 @@
<data android:mimeType="image/*" /> <data android:mimeType="image/*" />
</intent-filter> </intent-filter>
</activity> </activity>
<activity android:name="presentation.feature.settings.SettingsActivity" /> <activity android:name="feature.settings.SettingsActivity" />
<activity android:name="presentation.feature.setup.SetupActivity" /> <activity android:name="feature.setup.SetupActivity" />
<activity android:name="presentation.feature.themepicker.ThemePickerActivity" /> <activity android:name="feature.themepicker.ThemePickerActivity" />
<activity android:name="presentation.feature.plus.PlusActivity" /> <activity android:name="feature.plus.PlusActivity" />
<activity <activity
android:name="presentation.feature.gallery.GalleryActivity" android:name="feature.gallery.GalleryActivity"
android:theme="@style/AppThemeBlack" /> android:theme="@style/AppThemeBlack" />
<activity android:name="presentation.feature.conversationinfo.ConversationInfoActivity" /> <activity android:name="feature.conversationinfo.ConversationInfoActivity" />
<activity android:name="presentation.feature.notificationprefs.NotificationPrefsActivity" /> <activity android:name="feature.notificationprefs.NotificationPrefsActivity" />
<activity android:name="presentation.feature.blocked.BlockedActivity" /> <activity android:name="feature.blocked.BlockedActivity" />
<receiver android:name="presentation.receiver.DefaultSmsChangedReceiver"> <receiver android:name="receiver.DefaultSmsChangedReceiver">
<intent-filter> <intent-filter>
<action android:name="android.provider.action.DEFAULT_SMS_PACKAGE_CHANGED" /> <action android:name="android.provider.action.DEFAULT_SMS_PACKAGE_CHANGED" />
</intent-filter> </intent-filter>
</receiver> </receiver>
<receiver <receiver
android:name="presentation.receiver.SmsReceiver" android:name="receiver.SmsReceiver"
android:permission="android.permission.BROADCAST_SMS"> android:permission="android.permission.BROADCAST_SMS">
<intent-filter> <intent-filter>
<action android:name="android.provider.Telephony.SMS_DELIVER" /> <action android:name="android.provider.Telephony.SMS_DELIVER" />
</intent-filter> </intent-filter>
</receiver> </receiver>
<receiver <receiver
android:name="presentation.receiver.MmsReceiver" android:name="receiver.MmsReceiver"
android:permission="android.permission.BROADCAST_WAP_PUSH"> android:permission="android.permission.BROADCAST_WAP_PUSH">
<intent-filter> <intent-filter>
<action android:name="android.provider.Telephony.WAP_PUSH_DELIVER" /> <action android:name="android.provider.Telephony.WAP_PUSH_DELIVER" />
@@ -89,25 +89,25 @@
</intent-filter> </intent-filter>
</receiver> </receiver>
<receiver <receiver
android:name="presentation.receiver.MmsSentReceiver" android:name="receiver.MmsSentReceiver"
android:taskAffinity="com.klinker.android.messaging.MMS_SENT" /> android:taskAffinity="com.klinker.android.messaging.MMS_SENT" />
<receiver <receiver
android:name="presentation.receiver.MmsUpdatedReceiver" android:name="receiver.MmsUpdatedReceiver"
android:taskAffinity="com.moez.QKSMS.MMS_UPDATED" /> android:taskAffinity="com.moez.QKSMS.MMS_UPDATED" />
<receiver <receiver
android:name="presentation.receiver.MmsReceivedReceiver" android:name="receiver.MmsReceivedReceiver"
android:taskAffinity="com.klinker.android.messaging.MMS_RECEIVED" /> android:taskAffinity="com.klinker.android.messaging.MMS_RECEIVED" />
<receiver <receiver
android:name="presentation.receiver.SmsSentReceiver" android:name="receiver.SmsSentReceiver"
android:taskAffinity="com.moez.QKSMS.SMS_SENT" /> android:taskAffinity="com.moez.QKSMS.SMS_SENT" />
<receiver <receiver
android:name="presentation.receiver.SmsDeliveredReceiver" android:name="receiver.SmsDeliveredReceiver"
android:taskAffinity="com.moez.QKSMS.SMS_DELIVERED" /> android:taskAffinity="com.moez.QKSMS.SMS_DELIVERED" />
<receiver android:name="presentation.receiver.MarkSeenReceiver" /> <receiver android:name="receiver.MarkSeenReceiver" />
<receiver android:name="presentation.receiver.MarkReadReceiver" /> <receiver android:name="receiver.MarkReadReceiver" />
<receiver android:name="presentation.receiver.RemoteMessagingReceiver" /> <receiver android:name="receiver.RemoteMessagingReceiver" />
<receiver android:name="presentation.receiver.NightModeReceiver" /> <receiver android:name="receiver.NightModeReceiver" />
<receiver android:name="presentation.receiver.SmsProviderChangedReceiver"> <receiver android:name="receiver.SmsProviderChangedReceiver">
<intent-filter> <intent-filter>
<action android:name="android.provider.action.EXTERNAL_PROVIDER_CHANGE" /> <action android:name="android.provider.action.EXTERNAL_PROVIDER_CHANGE" />
</intent-filter> </intent-filter>
@@ -115,7 +115,7 @@
<service android:name="com.android.mms.transaction.TransactionService" /> <service android:name="com.android.mms.transaction.TransactionService" />
<service <service
android:name="presentation.service.HeadlessSmsSendService" android:name="service.HeadlessSmsSendService"
android:exported="true" android:exported="true"
android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"> android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE">
<intent-filter> <intent-filter>
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common package common
import com.bumptech.glide.load.DataSource import com.bumptech.glide.load.DataSource
import com.bumptech.glide.load.engine.GlideException import com.bumptech.glide.load.engine.GlideException
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common package common
import android.content.Context import android.content.Context
import android.support.annotation.ArrayRes import android.support.annotation.ArrayRes
@@ -33,8 +33,8 @@ import io.reactivex.rxkotlin.plusAssign
import io.reactivex.subjects.PublishSubject import io.reactivex.subjects.PublishSubject
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import kotlinx.android.synthetic.main.menu_list_item.view.* import kotlinx.android.synthetic.main.menu_list_item.view.*
import presentation.common.base.QkAdapter import common.base.QkAdapter
import presentation.common.base.QkViewHolder import common.base.QkViewHolder
import javax.inject.Inject import javax.inject.Inject
data class MenuItem(val title: String, val actionId: Int) data class MenuItem(val title: String, val actionId: Int)
+20 -20
View File
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common package common
import android.app.Activity import android.app.Activity
import android.app.ActivityOptions import android.app.ActivityOptions
@@ -31,25 +31,25 @@ import android.provider.Settings
import android.provider.Telephony import android.provider.Telephony
import android.view.View import android.view.View
import manager.NotificationManager import manager.NotificationManager
import presentation.feature.blocked.BlockedActivity import feature.blocked.BlockedActivity
import presentation.feature.blocked.BlockedViewModel import feature.blocked.BlockedViewModel
import presentation.feature.compose.ComposeActivity import feature.compose.ComposeActivity
import presentation.feature.compose.ComposeViewModel import feature.compose.ComposeViewModel
import presentation.feature.conversationinfo.ConversationInfoActivity import feature.conversationinfo.ConversationInfoActivity
import presentation.feature.conversationinfo.ConversationInfoViewModel import feature.conversationinfo.ConversationInfoViewModel
import presentation.feature.gallery.GalleryActivity import feature.gallery.GalleryActivity
import presentation.feature.gallery.GalleryViewModel import feature.gallery.GalleryViewModel
import presentation.feature.main.MainViewModel import feature.main.MainViewModel
import presentation.feature.notificationprefs.NotificationPrefsActivity import feature.notificationprefs.NotificationPrefsActivity
import presentation.feature.notificationprefs.NotificationPrefsViewModel import feature.notificationprefs.NotificationPrefsViewModel
import presentation.feature.plus.PlusActivity import feature.plus.PlusActivity
import presentation.feature.plus.PlusViewModel import feature.plus.PlusViewModel
import presentation.feature.settings.SettingsActivity import feature.settings.SettingsActivity
import presentation.feature.settings.SettingsViewModel import feature.settings.SettingsViewModel
import presentation.feature.setup.SetupActivity import feature.setup.SetupActivity
import presentation.feature.setup.SetupViewModel import feature.setup.SetupViewModel
import presentation.feature.themepicker.ThemePickerActivity import feature.themepicker.ThemePickerActivity
import presentation.feature.themepicker.ThemePickerViewModel import feature.themepicker.ThemePickerViewModel
import javax.inject.Inject import javax.inject.Inject
import javax.inject.Singleton import javax.inject.Singleton
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.base package common.base
import android.support.annotation.CallSuper import android.support.annotation.CallSuper
import android.support.v7.widget.RecyclerView import android.support.v7.widget.RecyclerView
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.base package common.base
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.arch.lifecycle.ViewModelProviders import android.arch.lifecycle.ViewModelProviders
@@ -27,7 +27,7 @@ import android.view.MenuItem
import io.reactivex.subjects.BehaviorSubject import io.reactivex.subjects.BehaviorSubject
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import kotlinx.android.synthetic.main.toolbar.* import kotlinx.android.synthetic.main.toolbar.*
import presentation.common.Navigator import common.Navigator
import kotlin.reflect.KClass import kotlin.reflect.KClass
abstract class QkActivity<VM : QkViewModel<*, *>> : AppCompatActivity() { abstract class QkActivity<VM : QkViewModel<*, *>> : AppCompatActivity() {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.base package common.base
import android.support.v7.util.DiffUtil import android.support.v7.util.DiffUtil
import android.support.v7.widget.RecyclerView import android.support.v7.widget.RecyclerView
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.base package common.base
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.arch.lifecycle.Lifecycle import android.arch.lifecycle.Lifecycle
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.base package common.base
import android.arch.lifecycle.LifecycleOwner import android.arch.lifecycle.LifecycleOwner
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.base package common.base
import android.support.v7.widget.RecyclerView import android.support.v7.widget.RecyclerView
import android.view.View import android.view.View
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.base package common.base
import android.arch.lifecycle.ViewModel import android.arch.lifecycle.ViewModel
import android.support.annotation.CallSuper import android.support.annotation.CallSuper
@@ -22,7 +22,7 @@ import android.app.AlarmManager
import android.app.PendingIntent import android.app.PendingIntent
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
import presentation.receiver.NightModeReceiver import receiver.NightModeReceiver
import util.Preferences import util.Preferences
import java.util.* import java.util.*
import java.util.concurrent.TimeUnit import java.util.concurrent.TimeUnit
@@ -32,10 +32,10 @@ import android.support.v4.app.NotificationManagerCompat
import android.support.v4.app.RemoteInput import android.support.v4.app.RemoteInput
import android.support.v4.app.TaskStackBuilder import android.support.v4.app.TaskStackBuilder
import com.moez.QKSMS.R import com.moez.QKSMS.R
import presentation.feature.compose.ComposeActivity import feature.compose.ComposeActivity
import presentation.receiver.MarkReadReceiver import receiver.MarkReadReceiver
import presentation.receiver.MarkSeenReceiver import receiver.MarkSeenReceiver
import presentation.receiver.RemoteMessagingReceiver import receiver.RemoteMessagingReceiver
import repository.MessageRepository import repository.MessageRepository
import util.Preferences import util.Preferences
import javax.inject.Inject import javax.inject.Inject
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.widget package common.widget
import android.content.Context import android.content.Context
import android.net.Uri import android.net.Uri
@@ -35,7 +35,7 @@ import common.util.GlideApp
import common.util.extensions.setTint import common.util.extensions.setTint
import kotlinx.android.synthetic.main.avatar_view.view.* import kotlinx.android.synthetic.main.avatar_view.view.*
import model.Contact import model.Contact
import presentation.common.Navigator import common.Navigator
import javax.inject.Inject import javax.inject.Inject
class AvatarView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : FrameLayout(context, attrs) { class AvatarView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : FrameLayout(context, attrs) {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.widget package common.widget
import android.content.Context import android.content.Context
import android.support.constraint.ConstraintLayout import android.support.constraint.ConstraintLayout
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.widget package common.widget
import android.content.Context import android.content.Context
import android.util.AttributeSet import android.util.AttributeSet
@@ -26,7 +26,7 @@ import injection.appComponent
import common.util.GlideApp import common.util.GlideApp
import common.util.extensions.setVisible import common.util.extensions.setVisible
import model.MmsPart import model.MmsPart
import presentation.common.Navigator import common.Navigator
import javax.inject.Inject import javax.inject.Inject
class MmsPreviewView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : LinearLayout(context, attrs) { class MmsPreviewView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : LinearLayout(context, attrs) {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.widget package common.widget
import android.content.Context import android.content.Context
import android.content.res.ColorStateList import android.content.res.ColorStateList
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.widget package common.widget
import android.content.Context import android.content.Context
import android.support.v7.widget.LinearLayoutCompat import android.support.v7.widget.LinearLayoutCompat
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.widget package common.widget
import android.content.Context import android.content.Context
import android.graphics.Typeface import android.graphics.Typeface
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.widget package common.widget
import android.content.Context import android.content.Context
import android.content.res.ColorStateList import android.content.res.ColorStateList
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.widget package common.widget
import android.content.Context import android.content.Context
import android.graphics.Typeface import android.graphics.Typeface
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.widget package common.widget
import android.content.Context import android.content.Context
import android.util.AttributeSet import android.util.AttributeSet
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.widget package common.widget
import android.content.Context import android.content.Context
import android.util.AttributeSet import android.util.AttributeSet
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.common.widget package common.widget
import android.content.Context import android.content.Context
import android.util.AttributeSet import android.util.AttributeSet
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.blocked package feature.blocked
import android.app.AlertDialog import android.app.AlertDialog
import android.os.Bundle import android.os.Bundle
@@ -28,7 +28,7 @@ import common.util.extensions.setVisible
import io.reactivex.subjects.PublishSubject import io.reactivex.subjects.PublishSubject
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import kotlinx.android.synthetic.main.blocked_activity.* import kotlinx.android.synthetic.main.blocked_activity.*
import presentation.common.base.QkThemedActivity import common.base.QkThemedActivity
import javax.inject.Inject import javax.inject.Inject
class BlockedActivity : QkThemedActivity<BlockedViewModel>(), BlockedView { class BlockedActivity : QkThemedActivity<BlockedViewModel>(), BlockedView {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.blocked package feature.blocked
import android.content.Context import android.content.Context
import android.view.LayoutInflater import android.view.LayoutInflater
@@ -27,8 +27,8 @@ import kotlinx.android.synthetic.main.blocked_list_item.view.*
import model.Contact import model.Contact
import model.Conversation import model.Conversation
import model.PhoneNumber import model.PhoneNumber
import presentation.common.base.FlowableAdapter import common.base.FlowableAdapter
import presentation.common.base.QkViewHolder import common.base.QkViewHolder
import javax.inject.Inject import javax.inject.Inject
class BlockedAdapter @Inject constructor(private val context: Context) : FlowableAdapter<Conversation>() { class BlockedAdapter @Inject constructor(private val context: Context) : FlowableAdapter<Conversation>() {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.blocked package feature.blocked
import io.reactivex.Flowable import io.reactivex.Flowable
import model.Conversation import model.Conversation
@@ -16,10 +16,10 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.blocked package feature.blocked
import io.reactivex.Observable import io.reactivex.Observable
import presentation.common.base.QkView import common.base.QkView
interface BlockedView : QkView<BlockedState> { interface BlockedView : QkView<BlockedState> {
@@ -16,14 +16,14 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.blocked package feature.blocked
import com.uber.autodispose.android.lifecycle.scope import com.uber.autodispose.android.lifecycle.scope
import com.uber.autodispose.kotlin.autoDisposable import com.uber.autodispose.kotlin.autoDisposable
import injection.appComponent import injection.appComponent
import interactor.MarkUnblocked import interactor.MarkUnblocked
import io.reactivex.rxkotlin.withLatestFrom import io.reactivex.rxkotlin.withLatestFrom
import presentation.common.base.QkViewModel import common.base.QkViewModel
import repository.MessageRepository import repository.MessageRepository
import javax.inject.Inject import javax.inject.Inject
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.compose package feature.compose
import android.content.Context import android.content.Context
import android.net.Uri import android.net.Uri
@@ -34,8 +34,8 @@ import io.reactivex.rxkotlin.plusAssign
import io.reactivex.subjects.PublishSubject import io.reactivex.subjects.PublishSubject
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import kotlinx.android.synthetic.main.attachment_list_item.view.* import kotlinx.android.synthetic.main.attachment_list_item.view.*
import presentation.common.base.QkAdapter import common.base.QkAdapter
import presentation.common.base.QkViewHolder import common.base.QkViewHolder
import javax.inject.Inject import javax.inject.Inject
class AttachmentAdapter @Inject constructor( class AttachmentAdapter @Inject constructor(
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.compose package feature.compose
import android.content.Context import android.content.Context
import android.support.v7.widget.RecyclerView import android.support.v7.widget.RecyclerView
@@ -37,8 +37,8 @@ import common.util.extensions.showKeyboard
import io.reactivex.subjects.PublishSubject import io.reactivex.subjects.PublishSubject
import kotlinx.android.synthetic.main.contact_chip.view.* import kotlinx.android.synthetic.main.contact_chip.view.*
import model.Contact import model.Contact
import presentation.common.base.QkAdapter import common.base.QkAdapter
import presentation.common.base.QkViewHolder import common.base.QkViewHolder
import javax.inject.Inject import javax.inject.Inject
class ChipsAdapter @Inject constructor(private val context: Context, private val colors: Colors) : QkAdapter<Contact>() { class ChipsAdapter @Inject constructor(private val context: Context, private val colors: Colors) : QkAdapter<Contact>() {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.compose package feature.compose
import android.app.AlertDialog import android.app.AlertDialog
import android.content.res.ColorStateList import android.content.res.ColorStateList
@@ -46,7 +46,7 @@ import io.reactivex.subjects.Subject
import kotlinx.android.synthetic.main.compose_activity.* import kotlinx.android.synthetic.main.compose_activity.*
import model.Contact import model.Contact
import model.Message import model.Message
import presentation.common.base.QkThemedActivity import common.base.QkThemedActivity
import javax.inject.Inject import javax.inject.Inject
class ComposeActivity : QkThemedActivity<ComposeViewModel>(), ComposeView { class ComposeActivity : QkThemedActivity<ComposeViewModel>(), ComposeView {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.compose package feature.compose
import android.net.Uri import android.net.Uri
import io.realm.RealmResults import io.realm.RealmResults
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.compose package feature.compose
import android.net.Uri import android.net.Uri
import android.view.KeyEvent import android.view.KeyEvent
@@ -24,7 +24,7 @@ import io.reactivex.Observable
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import model.Contact import model.Contact
import model.Message import model.Message
import presentation.common.base.QkView import common.base.QkView
interface ComposeView : QkView<ComposeState> { interface ComposeView : QkView<ComposeState> {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.compose package feature.compose
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
@@ -53,8 +53,8 @@ import model.Contact
import model.Conversation import model.Conversation
import model.Message import model.Message
import model.PhoneNumber import model.PhoneNumber
import presentation.common.Navigator import common.Navigator
import presentation.common.base.QkViewModel import common.base.QkViewModel
import repository.ContactRepository import repository.ContactRepository
import repository.MessageRepository import repository.MessageRepository
import util.extensions.asObservable import util.extensions.asObservable
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.compose package feature.compose
import android.app.Activity import android.app.Activity
import android.graphics.Rect import android.graphics.Rect
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.compose package feature.compose
import android.content.Context import android.content.Context
import android.view.LayoutInflater import android.view.LayoutInflater
@@ -29,8 +29,8 @@ import io.reactivex.subjects.PublishSubject
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import kotlinx.android.synthetic.main.contact_list_item.view.* import kotlinx.android.synthetic.main.contact_list_item.view.*
import model.Contact import model.Contact
import presentation.common.base.QkAdapter import common.base.QkAdapter
import presentation.common.base.QkViewHolder import common.base.QkViewHolder
import javax.inject.Inject import javax.inject.Inject
class ContactAdapter @Inject constructor(private val context: Context) : QkAdapter<Contact>() { class ContactAdapter @Inject constructor(private val context: Context) : QkAdapter<Contact>() {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.compose package feature.compose
import android.content.Context import android.content.Context
import android.view.View import android.view.View
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.compose package feature.compose
import android.content.Context import android.content.Context
import android.support.v7.widget.RecyclerView import android.support.v7.widget.RecyclerView
@@ -44,7 +44,7 @@ import model.Contact
import model.Conversation import model.Conversation
import model.Message import model.Message
import model.PhoneNumber import model.PhoneNumber
import presentation.common.base.QkViewHolder import common.base.QkViewHolder
import util.extensions.isImage import util.extensions.isImage
import java.util.concurrent.TimeUnit import java.util.concurrent.TimeUnit
import javax.inject.Inject import javax.inject.Inject
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.conversationinfo package feature.conversationinfo
import android.os.Bundle import android.os.Bundle
import android.support.v7.app.AlertDialog import android.support.v7.app.AlertDialog
@@ -28,8 +28,8 @@ import injection.appComponent
import common.util.extensions.setVisible import common.util.extensions.setVisible
import io.reactivex.subjects.PublishSubject import io.reactivex.subjects.PublishSubject
import kotlinx.android.synthetic.main.conversation_info_activity.* import kotlinx.android.synthetic.main.conversation_info_activity.*
import presentation.common.Navigator import common.Navigator
import presentation.common.base.QkThemedActivity import common.base.QkThemedActivity
import javax.inject.Inject import javax.inject.Inject
class ConversationInfoActivity : QkThemedActivity<ConversationInfoViewModel>(), ConversationInfoView { class ConversationInfoActivity : QkThemedActivity<ConversationInfoViewModel>(), ConversationInfoView {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.conversationinfo package feature.conversationinfo
import model.MmsPart import model.MmsPart
import model.Recipient import model.Recipient
@@ -16,10 +16,10 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.conversationinfo package feature.conversationinfo
import io.reactivex.Observable import io.reactivex.Observable
import presentation.common.base.QkView import common.base.QkView
interface ConversationInfoView : QkView<ConversationInfoState> { interface ConversationInfoView : QkView<ConversationInfoState> {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.conversationinfo package feature.conversationinfo
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
@@ -32,8 +32,8 @@ import io.reactivex.Observable
import io.reactivex.rxkotlin.plusAssign import io.reactivex.rxkotlin.plusAssign
import io.reactivex.rxkotlin.withLatestFrom import io.reactivex.rxkotlin.withLatestFrom
import model.Conversation import model.Conversation
import presentation.common.Navigator import common.Navigator
import presentation.common.base.QkViewModel import common.base.QkViewModel
import repository.MessageRepository import repository.MessageRepository
import util.extensions.asObservable import util.extensions.asObservable
import util.extensions.isImage import util.extensions.isImage
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.conversationinfo package feature.conversationinfo
import android.content.Context import android.content.Context
import android.support.v7.widget.RecyclerView import android.support.v7.widget.RecyclerView
@@ -31,8 +31,8 @@ import io.reactivex.rxkotlin.plusAssign
import io.reactivex.subjects.PublishSubject import io.reactivex.subjects.PublishSubject
import kotlinx.android.synthetic.main.conversation_media_list_item.view.* import kotlinx.android.synthetic.main.conversation_media_list_item.view.*
import model.MmsPart import model.MmsPart
import presentation.common.base.QkAdapter import common.base.QkAdapter
import presentation.common.base.QkViewHolder import common.base.QkViewHolder
import javax.inject.Inject import javax.inject.Inject
class ConversationMediaAdapter @Inject constructor( class ConversationMediaAdapter @Inject constructor(
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.conversationinfo package feature.conversationinfo
import android.content.Context import android.content.Context
import android.support.v7.widget.RecyclerView import android.support.v7.widget.RecyclerView
@@ -30,9 +30,9 @@ import io.reactivex.disposables.CompositeDisposable
import io.reactivex.rxkotlin.plusAssign import io.reactivex.rxkotlin.plusAssign
import kotlinx.android.synthetic.main.conversation_recipient_list_item.view.* import kotlinx.android.synthetic.main.conversation_recipient_list_item.view.*
import model.Recipient import model.Recipient
import presentation.common.Navigator import common.Navigator
import presentation.common.base.QkAdapter import common.base.QkAdapter
import presentation.common.base.QkViewHolder import common.base.QkViewHolder
import javax.inject.Inject import javax.inject.Inject
class ConversationRecipientAdapter @Inject constructor( class ConversationRecipientAdapter @Inject constructor(
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.conversationinfo package feature.conversationinfo
import android.content.Context import android.content.Context
import android.graphics.Rect import android.graphics.Rect
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.conversations package feature.conversations
import android.support.v7.widget.RecyclerView import android.support.v7.widget.RecyclerView
import android.support.v7.widget.helper.ItemTouchHelper import android.support.v7.widget.helper.ItemTouchHelper
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.conversations package feature.conversations
import android.content.Context import android.content.Context
import android.support.v7.widget.RecyclerView import android.support.v7.widget.RecyclerView
@@ -36,9 +36,9 @@ import model.Contact
import model.Conversation import model.Conversation
import model.Message import model.Message
import model.PhoneNumber import model.PhoneNumber
import presentation.common.Navigator import common.Navigator
import presentation.common.base.FlowableAdapter import common.base.FlowableAdapter
import presentation.common.base.QkViewHolder import common.base.QkViewHolder
import repository.MessageRepository import repository.MessageRepository
import javax.inject.Inject import javax.inject.Inject
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.gallery package feature.gallery
import android.os.Bundle import android.os.Bundle
import android.transition.ChangeBounds import android.transition.ChangeBounds
@@ -31,8 +31,8 @@ import common.util.extensions.setVisible
import io.reactivex.subjects.PublishSubject import io.reactivex.subjects.PublishSubject
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import kotlinx.android.synthetic.main.gallery_activity.* import kotlinx.android.synthetic.main.gallery_activity.*
import presentation.common.GlideCompletionListener import common.GlideCompletionListener
import presentation.common.base.QkActivity import common.base.QkActivity
class GalleryActivity : QkActivity<GalleryViewModel>(), GalleryView { class GalleryActivity : QkActivity<GalleryViewModel>(), GalleryView {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.gallery package feature.gallery
data class GalleryState( data class GalleryState(
val navigationVisible: Boolean = true, val navigationVisible: Boolean = true,
@@ -16,10 +16,10 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.gallery package feature.gallery
import io.reactivex.Observable import io.reactivex.Observable
import presentation.common.base.QkView import common.base.QkView
interface GalleryView : QkView<GalleryState> { interface GalleryView : QkView<GalleryState> {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.gallery package feature.gallery
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
@@ -29,7 +29,7 @@ import interactor.SaveImage
import io.reactivex.Flowable import io.reactivex.Flowable
import io.reactivex.rxkotlin.plusAssign import io.reactivex.rxkotlin.plusAssign
import io.reactivex.rxkotlin.withLatestFrom import io.reactivex.rxkotlin.withLatestFrom
import presentation.common.base.QkViewModel import common.base.QkViewModel
import repository.MessageRepository import repository.MessageRepository
import util.extensions.mapNotNull import util.extensions.mapNotNull
import javax.inject.Inject import javax.inject.Inject
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.main package feature.main
import android.app.AlertDialog import android.app.AlertDialog
import android.content.res.ColorStateList import android.content.res.ColorStateList
@@ -37,21 +37,21 @@ import com.jakewharton.rxbinding2.widget.textChanges
import com.moez.QKSMS.R import com.moez.QKSMS.R
import com.uber.autodispose.android.lifecycle.scope import com.uber.autodispose.android.lifecycle.scope
import com.uber.autodispose.kotlin.autoDisposable import com.uber.autodispose.kotlin.autoDisposable
import injection.appComponent import common.MenuItemAdapter
import common.Navigator
import common.base.QkThemedActivity
import common.util.extensions.dpToPx import common.util.extensions.dpToPx
import common.util.extensions.setBackgroundTint import common.util.extensions.setBackgroundTint
import common.util.extensions.setVisible import common.util.extensions.setVisible
import feature.conversations.ConversationItemTouchCallback
import feature.conversations.ConversationsAdapter
import injection.appComponent
import io.reactivex.Observable import io.reactivex.Observable
import io.reactivex.rxkotlin.Observables import io.reactivex.rxkotlin.Observables
import io.reactivex.subjects.PublishSubject import io.reactivex.subjects.PublishSubject
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import kotlinx.android.synthetic.main.drawer_view.* import kotlinx.android.synthetic.main.drawer_view.*
import kotlinx.android.synthetic.main.main_activity.* import kotlinx.android.synthetic.main.main_activity.*
import presentation.common.MenuItemAdapter
import presentation.common.Navigator
import presentation.common.base.QkThemedActivity
import presentation.feature.conversations.ConversationItemTouchCallback
import presentation.feature.conversations.ConversationsAdapter
import javax.inject.Inject import javax.inject.Inject
class MainActivity : QkThemedActivity<MainViewModel>(), MainView { class MainActivity : QkThemedActivity<MainViewModel>(), MainView {
@@ -16,12 +16,12 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.main package feature.main
import io.reactivex.Flowable import io.reactivex.Flowable
import model.Conversation import model.Conversation
import model.Message import model.Message
import presentation.common.MenuItem import common.MenuItem
data class MainState( data class MainState(
val page: MainPage = Inbox(), val page: MainPage = Inbox(),
@@ -16,10 +16,10 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.main package feature.main
import io.reactivex.Observable import io.reactivex.Observable
import presentation.common.base.QkView import common.base.QkView
interface MainView : QkView<MainState> { interface MainView : QkView<MainState> {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.main package feature.main
import android.Manifest import android.Manifest
import android.content.Context import android.content.Context
@@ -39,9 +39,9 @@ import io.reactivex.rxkotlin.plusAssign
import io.reactivex.rxkotlin.withLatestFrom import io.reactivex.rxkotlin.withLatestFrom
import io.realm.Realm import io.realm.Realm
import model.SyncLog import model.SyncLog
import presentation.common.MenuItem import common.MenuItem
import presentation.common.Navigator import common.Navigator
import presentation.common.base.QkViewModel import common.base.QkViewModel
import repository.MessageRepository import repository.MessageRepository
import util.Preferences import util.Preferences
import util.extensions.toFlowable import util.extensions.toFlowable
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.notificationprefs package feature.notificationprefs
import android.app.Activity import android.app.Activity
import android.content.Intent import android.content.Intent
@@ -32,9 +32,9 @@ import io.reactivex.subjects.PublishSubject
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import kotlinx.android.synthetic.main.notification_prefs_activity.* import kotlinx.android.synthetic.main.notification_prefs_activity.*
import kotlinx.android.synthetic.main.settings_switch_widget.view.* import kotlinx.android.synthetic.main.settings_switch_widget.view.*
import presentation.common.MenuItemAdapter import common.MenuItemAdapter
import presentation.common.base.QkThemedActivity import common.base.QkThemedActivity
import presentation.common.widget.PreferenceView import common.widget.PreferenceView
import javax.inject.Inject import javax.inject.Inject
class NotificationPrefsActivity : QkThemedActivity<NotificationPrefsViewModel>(), NotificationPrefsView { class NotificationPrefsActivity : QkThemedActivity<NotificationPrefsViewModel>(), NotificationPrefsView {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.notificationprefs package feature.notificationprefs
data class NotificationPrefsState( data class NotificationPrefsState(
val conversationTitle: String = "", val conversationTitle: String = "",
@@ -16,13 +16,13 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.notificationprefs package feature.notificationprefs
import android.net.Uri import android.net.Uri
import io.reactivex.Observable import io.reactivex.Observable
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import presentation.common.base.QkView import common.base.QkView
import presentation.common.widget.PreferenceView import common.widget.PreferenceView
interface NotificationPrefsView : QkView<NotificationPrefsState> { interface NotificationPrefsView : QkView<NotificationPrefsState> {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.notificationprefs package feature.notificationprefs
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
@@ -32,8 +32,8 @@ import util.Preferences
import io.reactivex.Flowable import io.reactivex.Flowable
import io.reactivex.rxkotlin.plusAssign import io.reactivex.rxkotlin.plusAssign
import io.reactivex.schedulers.Schedulers import io.reactivex.schedulers.Schedulers
import presentation.common.Navigator import common.Navigator
import presentation.common.base.QkViewModel import common.base.QkViewModel
import repository.MessageRepository import repository.MessageRepository
import timber.log.Timber import timber.log.Timber
import util.extensions.mapNotNull import util.extensions.mapNotNull
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.plus package feature.plus
import android.graphics.Typeface import android.graphics.Typeface
import android.os.Bundle import android.os.Bundle
@@ -31,7 +31,7 @@ import common.util.extensions.setBackgroundTint
import common.util.extensions.setTint import common.util.extensions.setTint
import common.util.extensions.setVisible import common.util.extensions.setVisible
import kotlinx.android.synthetic.main.qksms_plus_activity.* import kotlinx.android.synthetic.main.qksms_plus_activity.*
import presentation.common.base.QkThemedActivity import common.base.QkThemedActivity
import javax.inject.Inject import javax.inject.Inject
class PlusActivity : QkThemedActivity<PlusViewModel>(), PlusView { class PlusActivity : QkThemedActivity<PlusViewModel>(), PlusView {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.plus package feature.plus
import common.util.BillingManager import common.util.BillingManager
@@ -16,11 +16,11 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.plus package feature.plus
import common.util.BillingManager import common.util.BillingManager
import io.reactivex.Observable import io.reactivex.Observable
import presentation.common.base.QkView import common.base.QkView
interface PlusView : QkView<PlusState> { interface PlusView : QkView<PlusState> {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.plus package feature.plus
import com.uber.autodispose.android.lifecycle.scope import com.uber.autodispose.android.lifecycle.scope
import com.uber.autodispose.kotlin.autoDisposable import com.uber.autodispose.kotlin.autoDisposable
@@ -24,7 +24,7 @@ import injection.appComponent
import common.util.BillingManager import common.util.BillingManager
import io.reactivex.Observable import io.reactivex.Observable
import io.reactivex.rxkotlin.plusAssign import io.reactivex.rxkotlin.plusAssign
import presentation.common.base.QkViewModel import common.base.QkViewModel
import javax.inject.Inject import javax.inject.Inject
class PlusViewModel : QkViewModel<PlusView, PlusState>(PlusState()) { class PlusViewModel : QkViewModel<PlusView, PlusState>(PlusState()) {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.settings package feature.settings
import android.app.AlertDialog import android.app.AlertDialog
import android.app.ProgressDialog import android.app.ProgressDialog
@@ -37,9 +37,9 @@ import io.reactivex.subjects.PublishSubject
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import kotlinx.android.synthetic.main.settings_activity.* import kotlinx.android.synthetic.main.settings_activity.*
import kotlinx.android.synthetic.main.settings_switch_widget.view.* import kotlinx.android.synthetic.main.settings_switch_widget.view.*
import presentation.common.MenuItemAdapter import common.MenuItemAdapter
import presentation.common.base.QkThemedActivity import common.base.QkThemedActivity
import presentation.common.widget.PreferenceView import common.widget.PreferenceView
import javax.inject.Inject import javax.inject.Inject
class SettingsActivity : QkThemedActivity<SettingsViewModel>(), SettingsView { class SettingsActivity : QkThemedActivity<SettingsViewModel>(), SettingsView {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.settings package feature.settings
import util.Preferences import util.Preferences
@@ -16,12 +16,13 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.settings package feature.settings
import io.reactivex.Observable import io.reactivex.Observable
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import presentation.common.base.QkView import common.base.QkView
import presentation.common.widget.PreferenceView import common.widget.PreferenceView
import feature.settings.SettingsState
interface SettingsView : QkView<SettingsState> { interface SettingsView : QkView<SettingsState> {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.settings package feature.settings
import android.content.Context import android.content.Context
import com.moez.QKSMS.R import com.moez.QKSMS.R
@@ -30,8 +30,8 @@ import util.Preferences
import interactor.FullSync import interactor.FullSync
import io.reactivex.rxkotlin.plusAssign import io.reactivex.rxkotlin.plusAssign
import io.reactivex.rxkotlin.withLatestFrom import io.reactivex.rxkotlin.withLatestFrom
import presentation.common.Navigator import common.Navigator
import presentation.common.base.QkViewModel import common.base.QkViewModel
import timber.log.Timber import timber.log.Timber
import java.util.* import java.util.*
import javax.inject.Inject import javax.inject.Inject
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.setup package feature.setup
import android.Manifest import android.Manifest
import android.os.Bundle import android.os.Bundle
@@ -29,8 +29,8 @@ import injection.appComponent
import io.reactivex.subjects.PublishSubject import io.reactivex.subjects.PublishSubject
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import kotlinx.android.synthetic.main.setup_activity.* import kotlinx.android.synthetic.main.setup_activity.*
import presentation.common.Navigator import common.Navigator
import presentation.common.base.QkThemedActivity import common.base.QkThemedActivity
import javax.inject.Inject import javax.inject.Inject
class SetupActivity : QkThemedActivity<SetupViewModel>(), SetupView { class SetupActivity : QkThemedActivity<SetupViewModel>(), SetupView {
@@ -16,6 +16,6 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.setup package feature.setup
class SetupState class SetupState
@@ -16,10 +16,11 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.setup package feature.setup
import io.reactivex.Observable import io.reactivex.Observable
import presentation.common.base.QkView import common.base.QkView
import feature.setup.SetupState
interface SetupView : QkView<SetupState> { interface SetupView : QkView<SetupState> {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.setup package feature.setup
import android.content.Context import android.content.Context
import android.provider.Telephony import android.provider.Telephony
@@ -24,7 +24,9 @@ import com.uber.autodispose.android.lifecycle.scope
import com.uber.autodispose.kotlin.autoDisposable import com.uber.autodispose.kotlin.autoDisposable
import injection.appComponent import injection.appComponent
import manager.PermissionManager import manager.PermissionManager
import presentation.common.base.QkViewModel import common.base.QkViewModel
import feature.setup.SetupState
import feature.setup.SetupView
import javax.inject.Inject import javax.inject.Inject
class SetupViewModel : QkViewModel<SetupView, SetupState>(SetupState()) { class SetupViewModel : QkViewModel<SetupView, SetupState>(SetupState()) {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.themepicker package feature.themepicker
import android.content.Context import android.content.Context
import android.content.res.Resources import android.content.res.Resources
@@ -38,8 +38,8 @@ import io.reactivex.subjects.PublishSubject
import io.reactivex.subjects.Subject import io.reactivex.subjects.Subject
import kotlinx.android.synthetic.main.theme_list_item.view.* import kotlinx.android.synthetic.main.theme_list_item.view.*
import kotlinx.android.synthetic.main.theme_palette_list_item.view.* import kotlinx.android.synthetic.main.theme_palette_list_item.view.*
import presentation.common.base.QkAdapter import common.base.QkAdapter
import presentation.common.base.QkViewHolder import common.base.QkViewHolder
import javax.inject.Inject import javax.inject.Inject
class ThemeAdapter @Inject constructor( class ThemeAdapter @Inject constructor(
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.themepicker package feature.themepicker
import android.content.Context import android.content.Context
import android.support.v4.view.PagerAdapter import android.support.v4.view.PagerAdapter
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.themepicker package feature.themepicker
import android.os.Bundle import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.LinearLayoutManager
@@ -26,7 +26,7 @@ import com.uber.autodispose.kotlin.autoDisposable
import injection.appComponent import injection.appComponent
import common.util.extensions.pageScrolled import common.util.extensions.pageScrolled
import kotlinx.android.synthetic.main.theme_picker_activity.* import kotlinx.android.synthetic.main.theme_picker_activity.*
import presentation.common.base.QkThemedActivity import common.base.QkThemedActivity
import javax.inject.Inject import javax.inject.Inject
class ThemePickerActivity : QkThemedActivity<ThemePickerViewModel>(), ThemePickerView { class ThemePickerActivity : QkThemedActivity<ThemePickerViewModel>(), ThemePickerView {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.themepicker package feature.themepicker
data class ThemePickerState( data class ThemePickerState(
val threadId: Long = 0, val threadId: Long = 0,
@@ -16,11 +16,12 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.themepicker package feature.themepicker
import common.util.extensions.PageScroll import common.util.extensions.PageScroll
import io.reactivex.Observable import io.reactivex.Observable
import presentation.common.base.QkView import common.base.QkView
import feature.themepicker.ThemePickerState
interface ThemePickerView : QkView<ThemePickerState> { interface ThemePickerView : QkView<ThemePickerState> {
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.feature.themepicker package feature.themepicker
import android.content.Intent import android.content.Intent
import com.f2prateek.rx.preferences2.Preference import com.f2prateek.rx.preferences2.Preference
@@ -25,7 +25,9 @@ import com.uber.autodispose.kotlin.autoDisposable
import injection.appComponent import injection.appComponent
import util.Preferences import util.Preferences
import io.reactivex.rxkotlin.plusAssign import io.reactivex.rxkotlin.plusAssign
import presentation.common.base.QkViewModel import common.base.QkViewModel
import feature.themepicker.ThemePickerState
import feature.themepicker.ThemePickerView
import java.util.concurrent.TimeUnit import java.util.concurrent.TimeUnit
import javax.inject.Inject import javax.inject.Inject
@@ -21,36 +21,47 @@ package injection
import common.QKApplication import common.QKApplication
import common.util.ContactImageLoader import common.util.ContactImageLoader
import dagger.Component import dagger.Component
import presentation.common.widget.AvatarView import common.widget.AvatarView
import presentation.common.widget.MmsPreviewView import common.widget.MmsPreviewView
import presentation.common.widget.PagerTitleView import common.widget.PagerTitleView
import presentation.common.widget.PreferenceView import common.widget.PreferenceView
import presentation.common.widget.QkEditText import common.widget.QkEditText
import presentation.common.widget.QkSwitch import common.widget.QkSwitch
import presentation.common.widget.QkTextView import common.widget.QkTextView
import presentation.common.widget.Separator import common.widget.Separator
import presentation.feature.blocked.BlockedActivity import feature.blocked.BlockedActivity
import presentation.feature.blocked.BlockedViewModel import feature.blocked.BlockedViewModel
import presentation.feature.compose.ComposeActivity import feature.compose.ComposeActivity
import presentation.feature.compose.ComposeViewModel import feature.compose.ComposeViewModel
import presentation.feature.compose.DetailedChipView import feature.compose.DetailedChipView
import presentation.feature.conversationinfo.ConversationInfoActivity import feature.conversationinfo.ConversationInfoActivity
import presentation.feature.conversationinfo.ConversationInfoViewModel import feature.conversationinfo.ConversationInfoViewModel
import presentation.feature.gallery.GalleryActivity import feature.gallery.GalleryActivity
import presentation.feature.gallery.GalleryViewModel import feature.gallery.GalleryViewModel
import presentation.feature.main.MainActivity import feature.main.MainActivity
import presentation.feature.main.MainViewModel import feature.main.MainViewModel
import presentation.feature.notificationprefs.NotificationPrefsActivity import feature.notificationprefs.NotificationPrefsActivity
import presentation.feature.notificationprefs.NotificationPrefsViewModel import feature.notificationprefs.NotificationPrefsViewModel
import presentation.feature.plus.PlusActivity import feature.plus.PlusActivity
import presentation.feature.plus.PlusViewModel import feature.plus.PlusViewModel
import presentation.feature.settings.SettingsActivity import feature.settings.SettingsActivity
import presentation.feature.settings.SettingsViewModel import feature.settings.SettingsViewModel
import presentation.feature.setup.SetupActivity import feature.setup.SetupActivity
import presentation.feature.setup.SetupViewModel import feature.setup.SetupViewModel
import presentation.feature.themepicker.ThemePickerActivity import feature.themepicker.ThemePickerActivity
import presentation.feature.themepicker.ThemePickerViewModel import feature.themepicker.ThemePickerViewModel
import presentation.receiver.* import receiver.DefaultSmsChangedReceiver
import receiver.MarkReadReceiver
import receiver.MarkSeenReceiver
import receiver.MmsReceivedReceiver
import receiver.MmsSentReceiver
import receiver.MmsUpdatedReceiver
import receiver.NightModeReceiver
import receiver.RemoteMessagingReceiver
import receiver.SmsDeliveredReceiver
import receiver.SmsProviderChangedReceiver
import receiver.SmsReceiver
import receiver.SmsSentReceiver
import javax.inject.Singleton import javax.inject.Singleton
@Singleton @Singleton
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import android.net.Uri import android.net.Uri
import com.klinker.android.send_message.MmsReceivedReceiver import com.klinker.android.send_message.MmsReceivedReceiver
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import com.android.mms.transaction.PushReceiver import com.android.mms.transaction.PushReceiver
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import android.app.Activity import android.app.Activity
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.receiver package receiver
import android.app.Activity import android.app.Activity
import android.content.BroadcastReceiver import android.content.BroadcastReceiver
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with QKSMS. If not, see <http://www.gnu.org/licenses/>. * along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
*/ */
package presentation.service package service
import android.app.IntentService import android.app.IntentService
import android.content.Intent import android.content.Intent
@@ -24,9 +24,9 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:background="@color/tools_theme" tools:background="@color/tools_theme"
tools:parentTag="presentation.common.widget.AvatarView"> tools:parentTag="common.widget.AvatarView">
<presentation.common.widget.QkTextView <common.widget.QkTextView
android:id="@+id/initial" android:id="@+id/initial"
style="@style/TextPrimary" style="@style/TextPrimary"
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -30,7 +30,7 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<presentation.common.widget.QkTextView <common.widget.QkTextView
android:id="@+id/empty" android:id="@+id/empty"
style="@style/TextSecondary" style="@style/TextSecondary"
android:layout_width="0dp" android:layout_width="0dp"
@@ -28,7 +28,7 @@
android:paddingStart="16dp" android:paddingStart="16dp"
android:paddingTop="8dp"> android:paddingTop="8dp">
<presentation.common.widget.GroupAvatarView <common.widget.GroupAvatarView
android:id="@+id/avatars" android:id="@+id/avatars"
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="48dp" android:layout_height="48dp"
@@ -36,7 +36,7 @@
app:layout_constraintHorizontal_bias="0" app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="parent" /> app:layout_constraintStart_toStartOf="parent" />
<presentation.common.widget.QkTextView <common.widget.QkTextView
android:id="@+id/title" android:id="@+id/title"
style="@style/TextPrimary" style="@style/TextPrimary"
android:layout_width="0dp" android:layout_width="0dp"
@@ -17,7 +17,7 @@
~ You should have received a copy of the GNU General Public License ~ You should have received a copy of the GNU General Public License
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>. ~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
--> -->
<presentation.common.widget.QkEditText xmlns:android="http://schemas.android.com/apk/res/android" <common.widget.QkEditText xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@@ -36,7 +36,7 @@
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:background="@color/toolbarLight"> tools:background="@color/toolbarLight">
<presentation.common.widget.QkTextView <common.widget.QkTextView
android:id="@+id/toolbarTitle" android:id="@+id/toolbarTitle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@@ -147,7 +147,7 @@
app:layout_constraintStart_toStartOf="@id/messageBackground" app:layout_constraintStart_toStartOf="@id/messageBackground"
tools:tint="@color/textSecondary" /> tools:tint="@color/textSecondary" />
<presentation.common.widget.Separator <common.widget.Separator
android:id="@+id/attachSeparator" android:id="@+id/attachSeparator"
android:layout_width="1dp" android:layout_width="1dp"
android:layout_height="0dp" android:layout_height="0dp"
@@ -157,7 +157,7 @@
app:layout_constraintStart_toEndOf="@id/attach" app:layout_constraintStart_toEndOf="@id/attach"
app:layout_constraintTop_toBottomOf="@id/attachments" /> app:layout_constraintTop_toBottomOf="@id/attachments" />
<presentation.common.widget.QkEditText <common.widget.QkEditText
android:id="@+id/message" android:id="@+id/message"
style="@style/TextPrimary" style="@style/TextPrimary"
android:layout_width="0dp" android:layout_width="0dp"
@@ -177,7 +177,7 @@
app:layout_constraintStart_toEndOf="@id/attachSeparator" app:layout_constraintStart_toEndOf="@id/attachSeparator"
app:textColorHint="tertiary" /> app:textColorHint="tertiary" />
<presentation.common.widget.QkTextView <common.widget.QkTextView
android:id="@+id/counter" android:id="@+id/counter"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="0dp" android:layout_height="0dp"
@@ -32,12 +32,12 @@
android:background="@drawable/chip_background" android:background="@drawable/chip_background"
android:orientation="horizontal"> android:orientation="horizontal">
<presentation.common.widget.AvatarView <common.widget.AvatarView
android:id="@+id/avatar" android:id="@+id/avatar"
android:layout_width="36dp" android:layout_width="36dp"
android:layout_height="36dp" /> android:layout_height="36dp" />
<presentation.common.widget.QkTextView <common.widget.QkTextView
android:id="@+id/name" android:id="@+id/name"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@@ -32,7 +32,7 @@
android:elevation="8dp" android:elevation="8dp"
android:gravity="center_vertical"> android:gravity="center_vertical">
<presentation.common.widget.AvatarView <common.widget.AvatarView
android:id="@+id/avatar" android:id="@+id/avatar"
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="40dp" android:layout_height="40dp"
@@ -44,7 +44,7 @@
android:layout_weight="1" android:layout_weight="1"
android:orientation="vertical"> android:orientation="vertical">
<presentation.common.widget.QkTextView <common.widget.QkTextView
android:id="@+id/name" android:id="@+id/name"
style="@style/TextPrimary" style="@style/TextPrimary"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@@ -54,7 +54,7 @@
android:scrollHorizontally="true" android:scrollHorizontally="true"
tools:text="Moez Bhatti" /> tools:text="Moez Bhatti" />
<presentation.common.widget.QkTextView <common.widget.QkTextView
android:id="@+id/info" android:id="@+id/info"
style="@style/TextSecondary" style="@style/TextSecondary"
android:layout_width="wrap_content" android:layout_width="wrap_content"

Some files were not shown because too many files have changed in this diff Show More