Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kiranshaw-qi opened this issue Feb 16, 2022 · 3 comments

Comments

@kiranshaw-qi
Copy link

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
Copy link
Author

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

@yayaa
Copy link
Owner

yayaa commented Feb 27, 2022

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.

@kiranshaw-qi
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants