Skip to content

Instantly share code, notes, and snippets.

View connyduck's full-sized avatar
👾
fixing Android apps

Konrad Pozniak connyduck

👾
fixing Android apps
View GitHub Profile
@connyduck
connyduck / gist:7aead521ed2c2664ff6085be4f70d6ac
Created December 13, 2022 20:09
Tusky java.lang.NullPointerException
Seems like either instanceInfo or the return value of getPollMaxOptions are null, but both should never happen?
Exception java.lang.NullPointerException:
at com.keylesspalace.tusky.components.instanceinfo.InstanceInfo.getPollMaxOptions (InstanceInfo.java:20)
at com.keylesspalace.tusky.components.compose.ComposeActivity.openPollDialog (ComposeActivity.kt:718)
at com.keylesspalace.tusky.components.compose.ComposeActivity.setupButtons$lambda-25 (ComposeActivity.java:461)
at com.keylesspalace.tusky.components.compose.ComposeActivity$$InternalSyntheticLambda$0$0fb1e526714189330425a76c8420a3e2381565e2bce218941f7e93a6bf734b64$0.onClick$bridge (ComposeActivity.java:54)
at android.view.View.performClick (View.java:7455)
at android.view.View.performClickInternal (View.java:7432)
at android.view.View.access$3700 (View.java:835)
java.lang.ArrayIndexOutOfBoundsException:
at java.util.ArrayList.get (ArrayList.java:413)
at com.keylesspalace.tusky.util.PairedList.getPairedItem (PairedList.java:44)
at com.keylesspalace.tusky.fragment.NotificationsFragment.lambda$onCreateView$0 (NotificationsFragment.java:194)
at com.keylesspalace.tusky.e.f.lambda$KDpU9igVy8YH-PDsmt9jUj-LQ3o (SourceFile)
at com.keylesspalace.tusky.e.-$$Lambda$f$KDpU9igVy8YH-PDsmt9jUj-LQ3o.getStatus (lambda)
at com.keylesspalace.tusky.util.ListStatusAccessibilityDelegate$itemDelegate$1.onInitializeAccessibilityNodeInfo (ListStatusAccessibilityDelegate.java:45)
at androidx.core.view.AccessibilityDelegateCompat$AccessibilityDelegateAdapter.onInitializeAccessibilityNodeInfo (AccessibilityDelegateCompat.java:86)
at android.view.View.onInitializeAccessibilityNodeInfo (View.java:7207)
at android.view.View.createAccessibilityNodeInfoInternal (View.java:7168)
java.lang.ArrayIndexOutOfBoundsException:
at java.util.ArrayList.get (ArrayList.java:413)
at com.keylesspalace.tusky.util.PairedList.getPairedItem (PairedList.java:44)
at com.keylesspalace.tusky.e.-$$Lambda$7EjkEoIloiLoi1pGuAyWqLuntyw.getStatus (lambda)
at com.keylesspalace.tusky.util.ListStatusAccessibilityDelegate$itemDelegate$1.onInitializeAccessibilityNodeInfo (ListStatusAccessibilityDelegate.java:45)
at androidx.core.view.AccessibilityDelegateCompat$AccessibilityDelegateAdapter.onInitializeAccessibilityNodeInfo (AccessibilityDelegateCompat.java:86)
at android.view.View.onInitializeAccessibilityNodeInfo (View.java:6552)
at android.view.View.createAccessibilityNodeInfoInternal (View.java:6513)
at android.view.View$AccessibilityDelegate.createAccessibilityNodeInfo (View.java:23676)
at android.view.View.createAccessibilityNodeInfo (View.java:6496)
@connyduck
connyduck / tuskyartwork.markdown
Last active July 18, 2018 21:48
Tusky artwork commision
  • 4 assets
    • replacement for the elephant friend on the login page
    • one image that will be shown when there is no network connection, next to some text and a retry button
    • one image that will be shown when an error occurs, next to some text describing the error and a retry button
    • one image that will be shown on empty screens, e.g. when search returns no results, next to some text
  • should fit into Tusky/Mastodons general theme and color
    • cute elephant/mammoth? Its called Tusky for a reason
    • see bottom of this page for Tusky/Mastodon color scheme: https://joinmastodon.org/ Some examples of mastodon elephants can also be found in the press kit.
  • not too detailed (must look good on small screens like 600x400px)
  • must look good on light (#f4f4f4) and dark background (#282c37)
@connyduck
connyduck / gist:bdf1c765fbdd526e590c4ef390948f23
Last active July 31, 2022 11:34
Tusky crash stacktrace 4.7.18
java.lang.IllegalStateException:
at com.keylesspalace.tusky.AccountActivity.onPrepareOptionsMenu (AccountActivity.java:469)
at android.app.Activity.onPreparePanel (Activity.java:3396)
at android.support.v4.app.FragmentActivity.onPrepareOptionsPanel (FragmentActivity.java:559)
at android.support.v4.app.FragmentActivity.onPreparePanel (FragmentActivity.java:547)
at android.support.v7.view.WindowCallbackWrapper.onPreparePanel (WindowCallbackWrapper.java:99)
at android.support.v7.app.AppCompatDelegateImpl$AppCompatWindowCallback.onPreparePanel (AppCompatDelegateImpl.java:2576)
at android.support.v7.view.WindowCallbackWrapper.onPreparePanel (WindowCallbackWrapper.java:99)
at android.support.v7.app.ToolbarActionBar$ToolbarCallbackWrapper.onPreparePanel (ToolbarActionBar.java:522)
at android.support.v7.app.ToolbarActionBar.populateOptionsMenu (ToolbarActionBar.java:456)
@connyduck
connyduck / gist:fec040ac63c3615f9ee8e6c0758686bc
Created July 2, 2018 12:51
Tusky crash stacktrace 2.7.18
io.reactivex.exceptions.OnErrorNotImplementedException:
at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept (Functions.java:704)
at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept (Functions.java:701)
at io.reactivex.internal.observers.LambdaObserver.onError (LambdaObserver.java:77)
at io.reactivex.internal.observers.LambdaObserver.onNext (LambdaObserver.java:67)
at com.uber.autodispose.HalfSerializer.onNext (HalfSerializer.java:129)
at com.uber.autodispose.AutoDisposingObserverImpl.onNext (AutoDisposingObserverImpl.java:81)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal (ObservableObserveOn.java:200)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run (ObservableObserveOn.java:252)
at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run (HandlerScheduler.java:109)