diff options
author | Benson Huang <benson.huang@mediatek.com> | 2014-12-17 18:24:31 +0800 |
---|---|---|
committer | Leo Wang <leozwang@google.com> | 2014-12-17 23:28:03 +0000 |
commit | d1e9a1522a48b5a0b70132cc59b547d4363934f8 (patch) | |
tree | 7ebe780a2bdb4aacc5294a06f84ecd0b00fe5ed0 | |
parent | 08f39e1dcccf42637cb156b1e12b1874fe1e1cbd (diff) | |
download | android_packages_apps_FMRadio-d1e9a1522a48b5a0b70132cc59b547d4363934f8.tar.gz android_packages_apps_FMRadio-d1e9a1522a48b5a0b70132cc59b547d4363934f8.tar.bz2 android_packages_apps_FMRadio-d1e9a1522a48b5a0b70132cc59b547d4363934f8.zip |
[FM] "Can't search out available channel" will not pop up when no station is searched
First time Launch FM -> Search stations at the place
where there is no signal -> Wait the searching to
complete, "Can't search out available channel" will not
pop up when no station is searched.
The fix is to show cannot_search toast.
Bug 18780823
Review: https://partner-android-review.git.corp.google.com/#/c/189539
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
Change-Id: Iebf08187a677ce1b48fc47888b7ef1af00b52b16
-rw-r--r-- | src/com/android/fmradio/FmFavoriteActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/fmradio/FmFavoriteActivity.java b/src/com/android/fmradio/FmFavoriteActivity.java index 231f974..cdc180b 100644 --- a/src/com/android/fmradio/FmFavoriteActivity.java +++ b/src/com/android/fmradio/FmFavoriteActivity.java @@ -491,7 +491,7 @@ public class FmFavoriteActivity extends Activity { mService.updatePlayingNotification(); if (searchedNum == 0) { Toast.makeText(mContext, getString(R.string.toast_cannot_search), - Toast.LENGTH_SHORT); + Toast.LENGTH_SHORT).show(); // searched station is zero, if db has station, should not use empty. if (mMyAdapter.getCount() == 0) { View emptyView = (View) findViewById(R.id.empty_tips); |