OSDN Git Service

Fix trackball focus issues on orientation change.
[android-x86/packages-apps-DeskClock.git] / src / com / android / deskclock / DeskClock.java
index cf9b337..7c0e63e 100644 (file)
@@ -558,6 +558,8 @@ public class DeskClock extends Activity {
         mDate = (TextView) findViewById(R.id.date);
         mBatteryDisplay = (TextView) findViewById(R.id.battery);
 
+        mTime.getRootView().requestFocus();
+
         mWeatherHighTemperature = (TextView) findViewById(R.id.weather_high_temperature);
         mWeatherLowTemperature = (TextView) findViewById(R.id.weather_low_temperature);
         mWeatherLocation = (TextView) findViewById(R.id.weather_location);