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

F-Droid can't build #630

Closed
licaon-kter opened this issue Apr 19, 2023 · 2 comments
Closed

F-Droid can't build #630

licaon-kter opened this issue Apr 19, 2023 · 2 comments
Labels

Comments

@licaon-kter
Copy link

Wear libs are not FOSS

ref: 7f56a0e

@licaon-kter
Copy link
Author

related: #631

Fixed via: https://gitlab.com/fdroid/fdroiddata/-/commit/308018f389babbf215e66b31c33a650eb0026384

Works mostly ok, gets a lock and etc, but seen one error too (when the app was put in background)

java.lang.RuntimeException: Unable to pause activity {com.android.gpstest.osmdroid/com.android.gpstest.ui.MainActivity}: java.lang.NullPointerException
	at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4744)
	at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4695)
	at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4646)
	at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:46)
	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:223)
	at android.app.ActivityThread.main(ActivityThread.java:7705)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
Caused by: java.lang.NullPointerException
	at com.android.gpstest.ui.sky.SkyFragment.getBinding(SkyFragment.kt:79)
	at com.android.gpstest.ui.sky.SkyFragment.onGnssStopped(SkyFragment.kt:238)
	at com.android.gpstest.ui.sky.SkyFragment.access$onGnssStopped(SkyFragment.kt:72)
	at com.android.gpstest.ui.sky.SkyFragment$trackingListener$1.invoke(SkyFragment.kt:105)
	at com.android.gpstest.ui.sky.SkyFragment$trackingListener$1.invoke(SkyFragment.kt:105)
	at com.android.gpstest.library.util.PreferenceUtil.newStopTrackingListener$lambda$0(PreferenceUtil.kt:218)
	at com.android.gpstest.library.util.PreferenceUtil.$r8$lambda$_QFM2gjZjNGM7s1BOw8LuZsLtqA(Unknown Source:0)
	at com.android.gpstest.library.util.PreferenceUtil$$ExternalSyntheticLambda1.onSharedPreferenceChanged(Unknown Source:4)
	at android.app.SharedPreferencesImpl$EditorImpl.notifyListeners(SharedPreferencesImpl.java:637)
	at android.app.SharedPreferencesImpl$EditorImpl.apply(SharedPreferencesImpl.java:511)
	at com.android.gpstest.library.util.PreferenceUtils.saveBoolean(PreferenceUtils.java:104)
	at com.android.gpstest.library.util.PreferenceUtils.saveTrackingStarted(PreferenceUtils.java:235)
	at com.android.gpstest.ForegroundOnlyLocationService.unsubscribeToLocationUpdates(ForegroundOnlyLocationService.kt:253)
	at com.android.gpstest.ui.MainActivity.onPause(MainActivity.kt:394)
	at android.app.Activity.performPause(Activity.java:8168)
	at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1511)
	at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4734)
	... 12 more

@barbeau
Copy link
Owner

barbeau commented Apr 19, 2023

@licaon-kter Thanks for flagging this and fixing it for F-Droid!

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

No branches or pull requests

2 participants