Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sdex committed Sep 13, 2022
1 parent 7907d09 commit f5e4f57
Show file tree
Hide file tree
Showing 23 changed files with 28 additions and 31 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/com/sdex/activityrunner/AboutActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ package com.sdex.activityrunner
import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.sdex.activityrunner.commons.BaseActivity
import com.sdex.activityrunner.databinding.ActivityAboutBinding
import com.sdex.activityrunner.util.AppUtils
import com.sdex.activityrunner.util.IntentUtils
import com.sdex.commons.BaseActivity
import com.sdex.commons.license.LicensesDialogFragment
import com.sdex.commons.util.AppUtils

class AboutActivity : BaseActivity() {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sdex.commons.license
package com.sdex.activityrunner

import android.app.Dialog
import android.content.Context
Expand All @@ -10,8 +10,7 @@ import android.webkit.WebChromeClient
import android.webkit.WebView
import android.webkit.WebViewClient
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.sdex.activityrunner.R
import com.sdex.commons.BaseDialogFragment
import com.sdex.activityrunner.commons.BaseDialogFragment

class LicensesDialogFragment : BaseDialogFragment() {

Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/com/sdex/activityrunner/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ import com.sdex.activityrunner.app.ActivitiesListActivity
import com.sdex.activityrunner.app.ApplicationsListAdapter
import com.sdex.activityrunner.app.MainViewModel
import com.sdex.activityrunner.app.dialog.ApplicationOptionsDialog
import com.sdex.activityrunner.commons.BaseActivity
import com.sdex.activityrunner.databinding.ActivityMainBinding
import com.sdex.activityrunner.db.cache.ApplicationModel
import com.sdex.activityrunner.extensions.addDividerItemDecoration
import com.sdex.activityrunner.intent.IntentBuilderActivity
import com.sdex.activityrunner.preferences.AppPreferences
import com.sdex.activityrunner.preferences.SettingsActivity
import com.sdex.activityrunner.service.ApplicationsListJob
import com.sdex.commons.BaseActivity
import com.sdex.commons.util.AppUtils
import com.sdex.commons.util.UIUtils
import com.sdex.activityrunner.util.AppUtils
import com.sdex.activityrunner.util.UIUtils
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import androidx.appcompat.widget.SearchView
import androidx.core.view.isVisible
import com.sdex.activityrunner.R
import com.sdex.activityrunner.app.dialog.ActivityOptionsDialog
import com.sdex.activityrunner.commons.BaseActivity
import com.sdex.activityrunner.databinding.ActivityActivitiesListBinding
import com.sdex.activityrunner.db.cache.ApplicationModel
import com.sdex.activityrunner.extensions.addDividerItemDecoration
import com.sdex.activityrunner.extensions.serializable
import com.sdex.activityrunner.preferences.AppPreferences
import com.sdex.activityrunner.util.IntentUtils
import com.sdex.commons.BaseActivity
import com.sdex.commons.util.UIUtils
import com.sdex.activityrunner.util.UIUtils
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import android.app.Dialog
import android.os.Bundle
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.sdex.activityrunner.R
import com.sdex.activityrunner.commons.BaseDialogFragment
import com.sdex.activityrunner.preferences.SettingsActivity
import com.sdex.commons.BaseDialogFragment

class EnableNotExportedActivitiesDialog : BaseDialogFragment() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import com.sdex.activityrunner.db.cache.ApplicationModel
import com.sdex.activityrunner.extensions.serializable
import com.sdex.activityrunner.glide.GlideApp
import com.sdex.activityrunner.manifest.ManifestViewerActivity
import com.sdex.activityrunner.util.AppUtils
import com.sdex.activityrunner.util.IntentUtils
import com.sdex.commons.util.AppUtils

class ApplicationOptionsDialog : BottomSheetDialogFragment() {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sdex.commons
package com.sdex.activityrunner.commons

import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sdex.commons
package com.sdex.activityrunner.commons

import androidx.fragment.app.DialogFragment
import androidx.fragment.app.FragmentManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import android.app.Dialog
import android.os.Bundle
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.sdex.activityrunner.R
import com.sdex.commons.BaseDialogFragment
import com.sdex.commons.util.AppUtils
import com.sdex.activityrunner.commons.BaseDialogFragment
import com.sdex.activityrunner.util.AppUtils

class DonateDialog : BaseDialogFragment() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView
import com.sdex.activityrunner.R
import com.sdex.activityrunner.app.ActivityModel
import com.sdex.activityrunner.commons.BaseActivity
import com.sdex.activityrunner.databinding.ActivityIntentBuilderBinding
import com.sdex.activityrunner.extensions.parcelable
import com.sdex.activityrunner.extensions.serializable
Expand All @@ -25,7 +26,6 @@ import com.sdex.activityrunner.intent.history.HistoryActivity
import com.sdex.activityrunner.intent.param.Action
import com.sdex.activityrunner.intent.param.MimeType
import com.sdex.activityrunner.util.IntentUtils
import com.sdex.commons.BaseActivity
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.sdex.activityrunner.intent.analyzer

import android.os.Bundle
import com.sdex.activityrunner.commons.BaseActivity
import com.sdex.activityrunner.databinding.ActivityIntentAnalyzerBinding
import com.sdex.activityrunner.extensions.getFlagsList
import com.sdex.activityrunner.intent.LaunchParamsExtra
import com.sdex.activityrunner.intent.LaunchParamsExtraListAdapter
import com.sdex.activityrunner.intent.LaunchParamsExtraType
import com.sdex.activityrunner.intent.LaunchParamsListAdapter
import com.sdex.activityrunner.intent.param.None
import com.sdex.commons.BaseActivity

class IntentAnalyzerActivity : BaseActivity() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import android.os.Bundle
import androidx.core.os.bundleOf
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.sdex.activityrunner.R
import com.sdex.activityrunner.commons.BaseDialogFragment
import com.sdex.activityrunner.databinding.DialogExportIntentAsUriBinding
import com.sdex.activityrunner.extensions.parcelable
import com.sdex.activityrunner.intent.LaunchParams
import com.sdex.activityrunner.intent.converter.LaunchParamsToWebIntentConverter
import com.sdex.commons.BaseDialogFragment

class ExportIntentAsUriDialog : BaseDialogFragment() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import androidx.appcompat.app.AlertDialog
import androidx.core.os.bundleOf
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.sdex.activityrunner.R
import com.sdex.activityrunner.commons.BaseDialogFragment
import com.sdex.activityrunner.databinding.DialogInputExtraBinding
import com.sdex.activityrunner.extensions.parcelable
import com.sdex.activityrunner.intent.LaunchParamsExtra
import com.sdex.activityrunner.intent.LaunchParamsExtraType
import com.sdex.commons.BaseDialogFragment
import timber.log.Timber

class ExtraInputDialog : BaseDialogFragment() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import android.os.Bundle
import android.util.SparseBooleanArray
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.sdex.activityrunner.R
import com.sdex.activityrunner.commons.BaseDialogFragment
import com.sdex.activityrunner.intent.dialog.source.CategoriesSource
import com.sdex.activityrunner.intent.dialog.source.FlagsSource
import com.sdex.commons.BaseDialogFragment

class MultiSelectionDialog : BaseDialogFragment() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import android.content.Context
import android.os.Bundle
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.sdex.activityrunner.R
import com.sdex.activityrunner.commons.BaseDialogFragment
import com.sdex.activityrunner.intent.dialog.source.ActionSource
import com.sdex.activityrunner.intent.dialog.source.MimeTypeSource
import com.sdex.commons.BaseDialogFragment

class SingleSelectionDialog : BaseDialogFragment() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import android.os.Bundle
import android.view.inputmethod.EditorInfo
import androidx.core.os.bundleOf
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.sdex.activityrunner.commons.BaseDialogFragment
import com.sdex.activityrunner.databinding.DialogInputValueBinding
import com.sdex.commons.BaseDialogFragment

class ValueInputDialog : BaseDialogFragment() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import androidx.activity.viewModels
import androidx.core.view.isVisible
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.sdex.activityrunner.R
import com.sdex.activityrunner.commons.BaseActivity
import com.sdex.activityrunner.databinding.ActivityHistoryBinding
import com.sdex.activityrunner.db.history.HistoryModel
import com.sdex.activityrunner.extensions.addDividerItemDecoration
Expand All @@ -20,7 +21,6 @@ import com.sdex.activityrunner.intent.history.HistoryListAdapter.Companion.MENU_
import com.sdex.activityrunner.intent.history.HistoryListAdapter.Companion.MENU_ITEM_EXPORT_URI
import com.sdex.activityrunner.intent.history.HistoryListAdapter.Companion.MENU_ITEM_REMOVE
import com.sdex.activityrunner.shortcut.AddShortcutDialogActivity
import com.sdex.commons.BaseActivity
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import androidx.appcompat.app.AppCompatDelegate
import androidx.appcompat.widget.SearchView
import com.sdex.activityrunner.BuildConfig
import com.sdex.activityrunner.R
import com.sdex.activityrunner.commons.BaseActivity
import com.sdex.activityrunner.databinding.ActivityManifestViewerBinding
import com.sdex.activityrunner.db.cache.ApplicationModel
import com.sdex.activityrunner.preferences.AppPreferences
import com.sdex.activityrunner.util.IntentUtils
import com.sdex.commons.BaseActivity
import com.sdex.commons.util.UIUtils
import com.sdex.activityrunner.util.UIUtils
import com.sdex.highlightjs.models.Language
import com.sdex.highlightjs.models.Theme
import dagger.hilt.android.AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package com.sdex.activityrunner.preferences
import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.sdex.activityrunner.commons.BaseActivity
import com.sdex.activityrunner.databinding.ActivitySettingsBinding
import com.sdex.commons.BaseActivity

class SettingsActivity : BaseActivity() {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sdex.commons.util;
package com.sdex.activityrunner.util;

import android.content.ActivityNotFoundException;
import android.content.Context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import com.sdex.activityrunner.app.ActivityModel
import com.sdex.activityrunner.glide.GlideApp
import com.sdex.activityrunner.shortcut.ShortcutHandlerActivity
import com.sdex.activityrunner.shortcut.createShortcut
import com.sdex.commons.util.AppUtils
import timber.log.Timber

object IntentUtils {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sdex.commons.util;
package com.sdex.activityrunner.util;

import android.content.Context;
import android.content.res.Resources;
Expand Down

0 comments on commit f5e4f57

Please sign in to comment.