print stack trace with the log entries
This commit is contained in:
parent
b46b2247b4
commit
6036f2d960
|
@ -69,7 +69,7 @@ public abstract class CastEnabledActivity extends AppCompatActivity
|
||||||
super.onPrepareOptionsMenu(menu);
|
super.onPrepareOptionsMenu(menu);
|
||||||
MenuItem mediaRouteButton = menu.findItem(R.id.media_route_menu_item);
|
MenuItem mediaRouteButton = menu.findItem(R.id.media_route_menu_item);
|
||||||
if (mediaRouteButton == null) {
|
if (mediaRouteButton == null) {
|
||||||
Log.wtf(TAG, "MediaRoute item could not be found on the menu!");
|
Log.wtf(TAG, "MediaRoute item could not be found on the menu!", new Exception());
|
||||||
mediaRouteActionProvider = null;
|
mediaRouteActionProvider = null;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1746,7 +1746,8 @@ public class CastManager extends BaseCastManager implements OnFailedListener {
|
||||||
if (!(actionProvider instanceof SwitchableMediaRouteActionProvider)) {
|
if (!(actionProvider instanceof SwitchableMediaRouteActionProvider)) {
|
||||||
Log.wtf(TAG, "MenuItem provided to addMediaRouterButton() is not compatible with " +
|
Log.wtf(TAG, "MenuItem provided to addMediaRouterButton() is not compatible with " +
|
||||||
"SwitchableMediaRouteActionProvider." +
|
"SwitchableMediaRouteActionProvider." +
|
||||||
((actionProvider == null) ? " Its action provider is null!" : ""));
|
((actionProvider == null) ? " Its action provider is null!" : ""),
|
||||||
|
new ClassCastException());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
SwitchableMediaRouteActionProvider mediaRouteActionProvider =
|
SwitchableMediaRouteActionProvider mediaRouteActionProvider =
|
||||||
|
|
Loading…
Reference in New Issue