Skip to content

Commit 496f0c6

Browse files
authored
Merge pull request #18303 from wordpress-mobile/deps/update-androidx-compose-compiler-and-kotlin-to-1.3.2-and-1.7.20
[Dependency Updates] Update `androidxComposeCompilerVersion` and `kotlinVersion` to 1.3.2 and 1.7.20
2 parents 2610f50 + c5b6967 commit 496f0c6

File tree

15 files changed

+31
-12
lines changed

15 files changed

+31
-12
lines changed

WordPress/src/main/java/org/wordpress/android/ui/activitylog/list/ActivityLogListFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class ActivityLogListFragment : Fragment(R.layout.activity_log_list_fragment) {
114114
}
115115
}
116116

117-
@Suppress("DEPRECATION")
117+
@Suppress("DEPRECATION", "OVERRIDE_DEPRECATION")
118118
override fun onActivityCreated(savedInstanceState: Bundle?) {
119119
super.onActivityCreated(savedInstanceState)
120120
with(requireActivity()) {

WordPress/src/main/java/org/wordpress/android/ui/jetpack/scan/details/ThreatDetailsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class ThreatDetailsFragment : Fragment(R.layout.threat_details_fragment) {
124124
threatActionDialog?.show()
125125
}
126126

127-
@Suppress("DEPRECATION")
127+
@Suppress("DEPRECATION", "OVERRIDE_DEPRECATION")
128128
override fun onActivityCreated(savedInstanceState: Bundle?) {
129129
super.onActivityCreated(savedInstanceState)
130130
if (requireActivity().intent.extras?.containsKey(WordPress.SITE) != true) {

WordPress/src/main/java/org/wordpress/android/ui/jetpackplugininstall/fullplugin/install/JetpackFullPluginInstallActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class JetpackFullPluginInstallActivity : AppCompatActivity() {
4242
observeActionEvents()
4343
}
4444

45+
@Suppress("OVERRIDE_DEPRECATION")
4546
override fun onBackPressed() {
4647
if (!viewModel.uiState.value.showCloseButton) return
4748

WordPress/src/main/java/org/wordpress/android/ui/notifications/NotificationsDetailListFragment.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class NotificationsDetailListFragment : ListFragment(), NotificationFragment {
106106
return view
107107
}
108108

109-
@Suppress("DEPRECATION")
109+
@Suppress("DEPRECATION", "OVERRIDE_DEPRECATION")
110110
override fun onActivityCreated(bundle: Bundle?) {
111111
super.onActivityCreated(bundle)
112112
val listView = listView
@@ -455,6 +455,7 @@ class NotificationsDetailListFragment : ListFragment(), NotificationFragment {
455455
return pingbackUrl
456456
}
457457

458+
@Suppress("OVERRIDE_DEPRECATION")
458459
override fun doInBackground(vararg params: Void): List<NoteBlock>? {
459460
if (notification == null) {
460461
return null
@@ -519,6 +520,7 @@ class NotificationsDetailListFragment : ListFragment(), NotificationFragment {
519520
)
520521
}
521522

523+
@Suppress("OVERRIDE_DEPRECATION")
522524
override fun onPostExecute(noteList: List<NoteBlock>?) {
523525
if (!isAdded || noteList == null) {
524526
return

WordPress/src/main/java/org/wordpress/android/ui/notifications/NotificationsListFragment.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class NotificationsListFragment : Fragment(R.layout.notifications_list_fragment)
8484
private var lastTabPosition = 0
8585
private var binding: NotificationsListFragmentBinding? = null
8686

87-
@Suppress("DEPRECATION")
87+
@Suppress("DEPRECATION", "OVERRIDE_DEPRECATION")
8888
override fun onActivityCreated(savedInstanceState: Bundle?) {
8989
super.onActivityCreated(savedInstanceState)
9090
if (savedInstanceState != null) {
@@ -278,17 +278,20 @@ class NotificationsListFragment : Fragment(R.layout.notifications_list_fragment)
278278
}
279279
}
280280

281+
@Suppress("OVERRIDE_DEPRECATION")
281282
override fun onPrepareOptionsMenu(menu: Menu) {
282283
val notificationSettings = menu.findItem(R.id.notifications_settings)
283284
notificationSettings.isVisible = accountStore.hasAccessToken()
284285
super.onPrepareOptionsMenu(menu)
285286
}
286287

288+
@Suppress("OVERRIDE_DEPRECATION")
287289
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
288290
inflater.inflate(R.menu.notifications_list_menu, menu)
289291
super.onCreateOptionsMenu(menu, inflater)
290292
}
291293

294+
@Suppress("OVERRIDE_DEPRECATION")
292295
override fun onOptionsItemSelected(item: MenuItem): Boolean {
293296
if (item.itemId == R.id.notifications_settings) {
294297
ActivityLauncher.viewNotificationsSettings(activity)

WordPress/src/main/java/org/wordpress/android/ui/notifications/NotificationsListFragmentPage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class NotificationsListFragmentPage : ViewPagerFragment(R.layout.notifications_l
8484
fun onClickNote(noteId: String?)
8585
}
8686

87-
@Suppress("DEPRECATION")
87+
@Suppress("DEPRECATION", "OVERRIDE_DEPRECATION")
8888
override fun onActivityCreated(savedInstanceState: Bundle?) {
8989
super.onActivityCreated(savedInstanceState)
9090
val adapter = createOrGetNotesAdapter()

WordPress/src/main/java/org/wordpress/android/ui/pages/PagesFragment.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ class PagesFragment : Fragment(R.layout.pages_fragment), ScrollableViewInitializ
558558
)
559559
}
560560

561+
@Suppress("OVERRIDE_DEPRECATION")
561562
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
562563
super.onCreateOptionsMenu(menu, inflater)
563564
inflater.inflate(R.menu.menu_search, menu)

WordPress/src/main/java/org/wordpress/android/ui/prefs/PreferenceFragmentLifeCycleOwner.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,32 @@ open class PreferenceFragmentLifeCycleOwner : PreferenceFragment(), LifecycleOwn
3030
val lifecycleScope: LifecycleCoroutineScope
3131
get() = lifecycle.coroutineScope
3232

33+
@Suppress("OVERRIDE_DEPRECATION")
3334
override fun onCreate(savedInstanceState: Bundle?) {
3435
super.onCreate(savedInstanceState)
3536
lifecycleRegistry = LifecycleRegistry(this)
3637
lifecycleRegistry.handleLifecycleEvent(ON_CREATE)
3738
}
3839

40+
@Suppress("OVERRIDE_DEPRECATION")
3941
override fun onStart() {
4042
super.onStart()
4143
lifecycleRegistry.handleLifecycleEvent(ON_START)
4244
}
4345

46+
@Suppress("OVERRIDE_DEPRECATION")
4447
override fun onPause() {
4548
super.onPause()
4649
lifecycleRegistry.handleLifecycleEvent(ON_PAUSE)
4750
}
4851

52+
@Suppress("OVERRIDE_DEPRECATION")
4953
override fun onStop() {
5054
super.onStop()
5155
lifecycleRegistry.handleLifecycleEvent(ON_STOP)
5256
}
5357

58+
@Suppress("OVERRIDE_DEPRECATION")
5459
override fun onDestroy() {
5560
super.onDestroy()
5661
lifecycleRegistry.handleLifecycleEvent(ON_DESTROY)

WordPress/src/main/java/org/wordpress/android/ui/prefs/categories/detail/CategoryDetailFragment.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,17 +173,20 @@ class CategoryDetailFragment : Fragment(R.layout.category_detail_fragment) {
173173
categoryAdapter.replaceItems(categoryLevels)
174174
}
175175

176+
@Suppress("OVERRIDE_DEPRECATION")
176177
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
177178
menu.clear()
178179
inflater.inflate(R.menu.tag_detail, menu)
179180
super.onCreateOptionsMenu(menu, inflater)
180181
}
181182

183+
@Suppress("OVERRIDE_DEPRECATION")
182184
override fun onPrepareOptionsMenu(menu: Menu) {
183185
super.onPrepareOptionsMenu(menu)
184186
menu.findItem(R.id.menu_trash).isVisible = isInEditMode
185187
}
186188

189+
@Suppress("OVERRIDE_DEPRECATION")
187190
override fun onOptionsItemSelected(item: MenuItem): Boolean {
188191
if (item.itemId == R.id.menu_trash) {
189192
confirmDeleteCategory()

WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostDetailFragment.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import androidx.core.view.MenuProvider
3535
import androidx.core.view.ViewCompat
3636
import androidx.core.view.WindowInsetsCompat
3737
import androidx.core.view.isVisible
38+
import androidx.fragment.app.Fragment
3839
import androidx.fragment.app.FragmentManager
3940
import androidx.fragment.app.viewModels
4041
import androidx.lifecycle.ViewModelProvider
@@ -864,7 +865,7 @@ class ReaderPostDetailFragment : ViewPagerFragment(),
864865
is ReaderNavigationEvents.ReplaceRelatedPostDetailsWithHistory ->
865866
replaceRelatedPostDetailWithHistory(postId = this.postId, blogId = this.blogId)
866867

867-
is ReaderNavigationEvents.ShowPostInWebView -> showPostInWebView(post)
868+
is ReaderNavigationEvents.ShowPostInWebView -> showPostInWebView(post, this@ReaderPostDetailFragment)
868869
is ReaderNavigationEvents.ShowEngagedPeopleList -> {
869870
ActivityLauncher.viewPostLikesListActivity(
870871
activity,
@@ -1505,14 +1506,14 @@ class ReaderPostDetailFragment : ViewPagerFragment(),
15051506
}
15061507

15071508
@Suppress("DEPRECATION")
1508-
private fun ReaderPostDetailFragment.showPostInWebView(post: ReaderPost) {
1509+
private fun showPostInWebView(post: ReaderPost, fragment: Fragment) {
15091510
readerWebView.setIsPrivatePost(post.isPrivate)
15101511
readerWebView.setBlogSchemeIsHttps(UrlUtils.isHttps(post.blogUrl))
15111512
renderer = ReaderPostRenderer(readerWebView, viewModel.post, readerCssProvider)
15121513

15131514
// if the post is from private atomic site postpone render until we have a special access cookie
15141515
if (post.isPrivateAtomic && privateAtomicCookie.isCookieRefreshRequired()) {
1515-
PrivateAtCookieRefreshProgressDialog.showIfNecessary(fragmentManager, this@ReaderPostDetailFragment)
1516+
PrivateAtCookieRefreshProgressDialog.showIfNecessary(fragmentManager, fragment)
15161517
requestPrivateAtomicCookie()
15171518
} else if (post.isPrivateAtomic && privateAtomicCookie.exists()) {
15181519
// make sure we add cookie to the cookie manager if it exists before starting render
@@ -1755,6 +1756,7 @@ class ReaderPostDetailFragment : ViewPagerFragment(),
17551756
trackRelatedPostsIfShowing()
17561757
}
17571758

1759+
@Suppress("SameParameterValue")
17581760
private fun setRefreshing(refreshing: Boolean) {
17591761
swipeToRefreshHelper.isRefreshing = refreshing
17601762
}

0 commit comments

Comments
 (0)