Skip to content
This repository was archived by the owner on Feb 25, 2022. It is now read-only.

Commit 9a87b9d

Browse files
author
Hisanobu Tomari
committed
Bugfix JavaCounter with Speech recognition
1 parent 8660eee commit 9a87b9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/com/example/javabutton/MainActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
277277
if("java".equals(javaStr)) {
278278
counterVoice++;
279279
playJava(1.f);
280+
SharedPreferences shrP=PreferenceManager.getDefaultSharedPreferences(this);
281+
SharedPreferences.Editor e=shrP.edit();
282+
e.putLong(SettingsActivity.pref_counterVoice,counterVoice);
283+
e.commit();
280284
} else {
281285
Toast.makeText(this, javaStr, Toast.LENGTH_SHORT).show();
282286
}

0 commit comments

Comments
 (0)