Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am Mauin on github.
  • I am mauin ( on keybase.
  • I have a public key whose fingerprint is 501C 4B1B C971 E11F 4CB9 4612 FA75 6A4D EB2D C04F

To claim this, I am signing this object:

Mauin / commit-msg
Created Sep 7, 2016
COURAGE - commit-msg git hook
View commit-msg
# Prepend the branch name to the commit message
# Add this file as [repo]/.git/hooks/prepare-commit-msg
# A couple notes:
# 1. The file must be executable (chmod +x commit-msg)
# 2. This works on a per-repo basis (unless you follow this guide
Mauin /
Last active Mar 29, 2018
Progressbar that is testable with Espresso

Create the main Progressbar wrapper in your main source code. Use it instead of the android.widget.Progressbar as it will just forward all calls to the default Progressbar.

In your androidTest package create the Progressbar class in the exact same package as you did in the main source code. This way all your UI tests will call this ProgressBar instead of the default one. And since the modifications prevent the Progressbar from showing and animating, the UI thread won't be blocked and Espresso can continue the test.