Skip to content

Commit

Permalink
Say that nothing was found in cursor activities
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurzaczek committed May 12, 2014
1 parent 569f437 commit e09889d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<string name="not_implemented_yet">noch nicht implementiert</string>
<string name="main_help">Bewegen Sie den Finger über den Bildschrim hinauf oder hinunter um einen Eintrag zu wählen. Doppeltes Tippen wählt den aktuellen Eintrag aus.</string>
<string name="phonebook_help">Bewegen Sie den Finger über den Bildschrim hinauf oder hinunter um einen Eintrag zu wählen. Doppeltes Tippen wählt den aktuellen Eintrag aus.</string>
<string name="time_format">\'Es ist \'HH\' Uhr \'mm\' am \'dd\' \'MMMM</string>
<string name="time_format">\'Es ist \'HH\' Uhr \'mm\' am \'dd\' \'MMMM</string>
<string name="nothing_found">Nichts gefunden</string>

</resources>
1 change: 1 addition & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
<string name="main_help">Move your finger on the screen up or down to select an item. Double tab to select the current item.</string>
<string name="phonebook_help">Move your finger on the screen up or down to select an item. Double tab to select the current item.</string>
<string name="time_format">\'It is \'HH:mm\' o\'\'clock on \'MMMM\' \'dd</string>
<string name="nothing_found">Nothing found</string>

</resources>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.zaczek.launcherforblind.activitysupport;

import net.zaczek.launcherforblind.R;
import net.zaczek.launcherforblind.listentries.ListEntry;
import android.database.Cursor;
import android.util.Log;
Expand All @@ -26,6 +27,13 @@ protected void onResume() {
mCursor = getCursor();
if (mCursor != null && mCursor.moveToFirst()) {
select();
} else {
Log.i(TAG, "Nothing found");

String txt = getString(R.string.nothing_found);
vibe();
giveFeedback(txt);
say(txt);
}
}

Expand Down

0 comments on commit e09889d

Please sign in to comment.