Improved debugging
This commit is contained in:
@ -37,7 +37,9 @@ public class IntentGenerator {
|
||||
public static String getTitle(final Intent intent) throws IllegalArgumentException {
|
||||
if (intent.hasExtra(EXTRA_FLAG_TITLE)) return intent.getStringExtra(EXTRA_FLAG_TITLE);
|
||||
|
||||
throw new IllegalArgumentException("Got an intent not generated by IntentGenerator");
|
||||
throw new IllegalArgumentException("Got an intent not generated by IntentGenerator!\n"
|
||||
+ "Intent:\n" + intent.toString() + "\n"
|
||||
+ "Extras:\n" + intent.getExtras().toString());
|
||||
}
|
||||
|
||||
public static boolean isDefault(final Intent intent) {
|
||||
|
Reference in New Issue
Block a user