An electronic device includes a housing having a first panel connected to a second panel movable between folded and unfolded configurations. A first antenna is located adjacent to the first panel and a second antenna is located adjacent to the second panel. The second antenna is activated when the housing is in an unfolded configuration and is deactivated when the housing is in a folded configuration.