OSDN Git Service
(root)
/
android-x86
/
packages-apps-DeskClock.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1878e99
)
Launch the Genie widget when the weather is tapped.
author
Daniel Sandler
<dsandler@google.com>
Thu, 5 Nov 2009 21:19:26 +0000
(16:19 -0500)
committer
Daniel Sandler
<dsandler@google.com>
Thu, 5 Nov 2009 21:36:09 +0000
(16:36 -0500)
Fixes: http://b/
2240161
src/com/android/deskclock/DeskClock.java
patch
|
blob
|
history
diff --git
a/src/com/android/deskclock/DeskClock.java
b/src/com/android/deskclock/DeskClock.java
index
7c0e63e
..
51ebbdb
100644
(file)
--- a/
src/com/android/deskclock/DeskClock.java
+++ b/
src/com/android/deskclock/DeskClock.java
@@
-622,6
+622,18
@@
public class DeskClock extends Activity {
return true;
}
});
+
+ final View weatherView = findViewById(R.id.weather);
+ weatherView.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View v) {
+ if (!supportsWeather()) return;
+
+ Intent genieAppQuery = getPackageManager().getLaunchIntentForPackage(GENIE_PACKAGE_ID);
+ if (genieAppQuery != null) {
+ startActivity(genieAppQuery);
+ }
+ }
+ });
}
@Override