| Impact | Description | Total |
|---|---|---|
| Direct Impact | Meetups, confs and talks | +1.1k |
| Indirect Impact | Articles, Stack overflow | +135k |
| People Trained | Workshops | +60 |
This file contains hidden or 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 static Matcher<View> editTextwithItemHint(final String matcherText) { | |
| return new BoundedMatcher<View, EditText>(EditText.class) { | |
| @Override | |
| public void describeTo(Description description) { | |
| description.appendText("with item hint: " + matcherText); | |
| } | |
| @Override | |
| protected boolean matchesSafely(EditText editTextField) { |
This file contains hidden or 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 static Matcher<View> textViewTextColorMatcher(final int matcherColor) { | |
| return new BoundedMatcher<View, TextView>(TextView.class) { | |
| @Override | |
| public void describeTo(Description description) { | |
| description.appendText("with text color: " + matcherColor); | |
| } | |
| @Override | |
| protected boolean matchesSafely(TextView textView) { | |
| return matcherColor == textView.getCurrentTextColor(); | |
| } |
This file contains hidden or 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
| FirebaseInstanceId.getInstance().getInstanceId() | |
| .addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() { | |
| @Override | |
| public void onComplete(@NonNull Task<InstanceIdResult> task) { | |
| if (!task.isSuccessful()) { | |
| Log.w(TAG, "getInstanceId failed", task.getException()); | |
| return; | |
| } | |
| // Get new Instance ID token |
This file contains hidden or 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 CrashlyticsUtils { | |
| public static void dropAuctionBreadCrumb(String className, String methodName, Long auctionId, String generalData) { | |
| String breadCrumb = String.format("%s - %s - %s - %s", className, methodName, String.valueOf(auctionId), generalData); | |
| Crashlytics.log(breadCrumb); | |
| } | |
| } |
This file contains hidden or 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
| CrashlyticsUtils.dropAuctionBreadCrumb(TAG, "intercept", 0L, "Request: "+ request.url().toString()); |
This file contains hidden or 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
| <android.support.design.widget.BottomNavigationView | |
| android:id="@+id/main_bottom_navigation" | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_marginBottom="0dp" | |
| android:layout_marginEnd="0dp" | |
| android:layout_marginStart="0dp" | |
| android:background="@color/bottombar_background" | |
| android:theme="@style/Widget.BottomNavigationView" | |
| app:itemBackground="@color/bottombar_background" |
This file contains hidden or 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 AppLifecycleObserver implements LifecycleObserver { | |
| public static final String TAG = AppLifecycleObserver.class.getName(); | |
| @OnLifecycleEvent(Lifecycle.Event.ON_START) | |
| public void onEnterForeground() { | |
| //run the code we need | |
| } | |
| @OnLifecycleEvent(Lifecycle.Event.ON_STOP) |