proming / android-shuffle

Automatically exported from code.google.com/p/android-shuffle
0 stars 0 forks source link

Shuffle crashes in Japanese environment. #221

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup language setting to Japanese.
2. Start the Shuffle.
3. Select "Inbox" or any other.
4. Tap wrench iconed button. 
   View Filter view appear.
   ! Can't see current setting in second small line.
     I can see it in English mode.
5. Tap one of them.
   Dialog appear.
   ! None of them are selected.
6. Select one of them and tap button.
   ! Now I can see current setting in second small line.
7. Tap "Back" button.
8. Crash.

9. After that, Shuffle never come up.

What version of the product are you using? On what operating system?
 v1.7.0b1
 Samsung Galaxy S. OS 2.2.1 and emulator.

Please provide any additional information below.

At the point on LogCat:
03-08 20:34:05.966: ERROR/AndroidRuntime(316): FATAL EXCEPTION: main
03-08 20:34:05.966: ERROR/AndroidRuntime(316): java.lang.RuntimeException: 
Failure delivering result ResultInfo{who=null, request=600, result=0, 
data=null} to activity 
{org.dodgybits.android.shuffle/org.dodgybits.shuffle.android.list.activity.task.
TabbedDueActionsActivity}: java.lang.IllegalArgumentException: ?????? is not a 
constant in the enum type class 
org.dodgybits.shuffle.android.core.model.persistence.selector.Flag

I think "??????" in the message is a Japanese charactor.
I found that 
/data/data/org.dodgybits.android.shuffle/shared_prefs/org.dodgybits.android.shuf
fle_preferences.xml contains Japanese word. I replaced it with corresponding 
English word, after that, the Shuffle starts normally. But it seems view filter 
setting is not affect.

I also tried Chinese setting (it also uses another character set 'Kanji'), but 
View Filter related words are not translated to Chinise and works fine.

<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<string name="next_tasks.list_deleted">no</string>
<boolean name="display_context_icon" value="true" />
<string name="tickler.list_active">ignored</string>
<boolean name="display_details" value="true" />
<string name="context.list_pending">ignored</string>
<string name="context.list_active">ignored</string>
<boolean name="project_view" value="true" />
<boolean name="first_time" value="false" />
<string name="next_tasks.list_pending">無視</string>   <--!!! 
<string name="due_tasks.list_completed">no</string>
<string name="tickler.list_completed">no</string>
<string name="top_level_counts">1,6,6,4,6,22</string>
<boolean name="display_due_date" value="true" />
<string name="context.list_deleted">no</string>
<boolean name="send_analytics" value="true" />
<boolean name="display_context_name" value="true" />
<string name="next_tasks.list_active">yes</string>
<string name="tickler.list_deleted">no</string>
<long name="last_inbox_clean" value="1299498757600" />
<boolean name="display_project" value="true" />
<string name="due_tasks.list_deleted">no</string>
<string name="due_tasks.list_pending">ignored</string>
<string name="tickler.list_pending">ignored</string>
<string name="context.list_completed">ignored</string>
<string name="due_tasks.list_active">yes</string>
<int name="last_version" value="27" />
<string name="next_tasks.list_completed">no</string>
<boolean name="context_view" value="true" />
</map>

Original issue reported on code.google.com by ypsilon....@gmail.com on 8 Mar 2011 at 11:43

GoogleCodeExporter commented 9 years ago
Fixed in 1.7.0b2
Preference key values were being translated. Removed these from spanish and 
japanese translations.
Added try catch round reading of preference value, so app doesn't crash for 
anyone who has dodgy settings (resets to default if it's not understood).

Original comment by andybry...@gmail.com on 8 Mar 2011 at 10:39

GoogleCodeExporter commented 9 years ago

Original comment by andybry...@gmail.com on 8 Mar 2011 at 10:39