This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.instabug.my_awesome_library; | |
import androidx.annotation.NonNull; | |
import androidx.annotation.Nullable; | |
/** | |
* Basic class for logging instead of using Log class directly. | |
*/ | |
public class Logger { | |
private static LoggerImpl logger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fatal Exception: java.lang.RuntimeException: An error occurred while executing doInBackground() | |
at android.os.AsyncTask$3.done(AsyncTask.java:353) | |
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383) | |
at java.util.concurrent.FutureTask.setException(FutureTask.java:252) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:271) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) | |
at java.lang.Thread.run(Thread.java:764) | |
Caused by java.lang.SecurityException: Caller no longer running, last stopped +8s783ms because: timed out while starting | |
at android.os.Parcel.readException(Parcel.java:1942) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class MyServiceImpl extends JobIntentService { | |
// This method is the main reason for the bug and crash | |
@Override | |
GenericWorkItem dequeueWork() { | |
try { | |
return super.dequeueWork(); | |
} catch (SecurityException exception) { | |
// the exception will be ignored here. | |
} | |
return null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package se.marteinn.ui; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.widget.ScrollView; | |
/** | |
* Triggers a event when scrolling reaches bottom. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Regex { | |
/** | |
* Regular expression pattern to match all IANA top-level domains. | |
* List accurate as of 2007/06/15. List taken from: | |
* http://data.iana.org/TLD/tlds-alpha-by-domain.txt | |
* This pattern is auto-generated by //device/tools/make-iana-tld-pattern.py | |
*/ | |
private static final Pattern TOP_LEVEL_DOMAIN_PATTERN | |
= Pattern.compile( | |
"((aero|arpa|asia|a[cdefgilmnoqrstuwxz])" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SquareRelativeLayout extends RelativeLayout { | |
public SquareRelativeLayout(Context context) { | |
super(context); | |
} | |
public SquareRelativeLayout(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} | |
@Override |