LocationManager icon indicating copy to clipboard operation
LocationManager copied to clipboard

onActivityResult(Int, Int, Intent?): Unit' is deprecated. Overrides deprecated member in 'androidx.activity.ComponentActivity'. Deprecated in Java For LocationBaseActivity

Open kiranshaw-qi opened this issue 3 years ago • 3 comments

onActivityResult(Int, Int, Intent?): Unit' is deprecated. Overrides deprecated member in 'androidx.activity.ComponentActivity'. Deprecated in Java For LocationBaseActivity

Configuration

_Android Studio_ 

Android Studio Arctic Fox | 2020.3.1 Patch 3
Build #AI-203.7717.56.2031.7784292, built on October 1, 2021
Runtime version: 11.0.10+0-b96-7249189 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0

_Java_

Java 11

Logs

When I am running ktlint it gives error and my github workflow is failing

Task :app:compileDriverDevDebugKotlin w: /home/runner/work/tracksynq-android/tracksynq-android/app/src/main/java/com/quantuminventions/tracksynq/presentation/base/LocationBaseActivity.kt: (22, 15): 'onActivityResult(Int, Int, Intent?): Unit' is deprecated. Overrides deprecated member in 'androidx.activity.ComponentActivity'. Deprecated in Java

Can you suggest something? Thanks in advance

kiranshaw-qi avatar Feb 16 '22 05:02 kiranshaw-qi

@branoh @stetro @yayaa @fightyz any update on this?

kiranshaw-qi avatar Feb 25 '22 05:02 kiranshaw-qi

Pull requests are welcome :)

LocationBaseActivity is an helper class nothing more, you can easily copy what's in it and put it in your own activity - it shouldn't be blocking to use the library.

yayaa avatar Feb 27 '22 11:02 yayaa

@yayaa, But what would you suggest in place of the deprecated class onActivityResult(Int, Int, Intent?): Unit' is deprecated if I was using exactly the same LocationBaseActivity?
Same for @branoh @stetro @fightyz.

Thanks in advance for your suggestions.

kiranshaw-qi avatar Feb 28 '22 04:02 kiranshaw-qi