{"action":"created","issue":{"url":"https://api.github.com/repos/haiwen/seadroid/issues/478","labels_url":"https://api.github.com/repos/haiwen/seadroid/issues/478/labels{/name}","comments_url":"https://api.github.com/repos/haiwen/seadroid/issues/478/comments","events_url":"https://api.github.com/repos/haiwen/seadroid/issues/478/events","html_url":"https://github.com/haiwen/seadroid/issues/478","id":128427219,"number":478,"title":"Seafile 2.0.1: Material Design(?) crash on Android 4.4 or older","user":{"login":"forouher","id":676900,"avatar_url":"https://avatars.githubusercontent.com/u/676900?v=3","gravatar_id":"","url":"https://api.github.com/users/forouher","html_url":"https://github.com/forouher","followers_url":"https://api.github.com/users/forouher/followers","following_url":"https://api.github.com/users/forouher/following{/other_user}","gists_url":"https://api.github.com/users/forouher/gists{/gist_id}","starred_url":"https://api.github.com/users/forouher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forouher/subscriptions","organizations_url":"https://api.github.com/users/forouher/orgs","repos_url":"https://api.github.com/users/forouher/repos","events_url":"https://api.github.com/users/forouher/events{/privacy}","received_events_url":"https://api.github.com/users/forouher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/haiwen/seadroid/milestones/13","html_url":"https://github.com/haiwen/seadroid/milestones/2.0","labels_url":"https://api.github.com/repos/haiwen/seadroid/milestones/13/labels","id":1241369,"number":13,"title":"2.0","description":"","creator":{"login":"Logan676","id":2975850,"avatar_url":"https://avatars.githubusercontent.com/u/2975850?v=3","gravatar_id":"","url":"https://api.github.com/users/Logan676","html_url":"https://github.com/Logan676","followers_url":"https://api.github.com/users/Logan676/followers","following_url":"https://api.github.com/users/Logan676/following{/other_user}","gists_url":"https://api.github.com/users/Logan676/gists{/gist_id}","starred_url":"https://api.github.com/users/Logan676/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Logan676/subscriptions","organizations_url":"https://api.github.com/users/Logan676/orgs","repos_url":"https://api.github.com/users/Logan676/repos","events_url":"https://api.github.com/users/Logan676/events{/privacy}","received_events_url":"https://api.github.com/users/Logan676/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":10,"state":"open","created_at":"2015-08-05T02:57:26Z","updated_at":"2016-01-27T03:03:45Z","due_on":"2016-02-04T16:00:00Z","closed_at":null},"comments":3,"created_at":"2016-01-24T21:44:16Z","updated_at":"2016-01-31T21:17:16Z","closed_at":null,"body":"First observed on a \"Samsung T-113\" Tablet.\r\n\r\nSteps to reproduce it in the emulator:\r\n\r\n1. Create a new AVD based on API level 17 or 19 (\"Nexus 4\" template)\r\n2. start Emulator & install seadroid\r\n3. create seadroid account\r\n4. open a file in BrowserActivity (e.g. \".pdf\") (file must not be cached)\r\n5. the attached crash happens.\r\n\r\nAdditional notes:\r\n- Android 5.1 or 6.0 are not affected\r\n- Downloading a file into the cache works. And opening a cached file will work as well.\r\n\r\n```\r\n01-24 16:31:38.197 3481-3481/com.seafile.seadroid2 D/BrowserActivity: onPause\r\n01-24 16:31:38.197 3481-3481/com.seafile.seadroid2 D/DefaultAppLock: onActivityPaused\r\n01-24 16:31:38.207 3481-3481/com.seafile.seadroid2 D/Account: https://xxxx.xxxx.xxxx/ xxxxx@xxxxx.xxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n01-24 16:31:38.207 3481-3481/com.seafile.seadroid2 I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.\r\n01-24 16:31:38.207 3481-3481/com.seafile.seadroid2 W/ResourceType: Too many attribute references, stopped at: 0x01010099\r\n01-24 16:31:38.217 3481-3481/com.seafile.seadroid2 W/ResourceType: Too many attribute references, stopped at: 0x0101009a\r\n01-24 16:31:38.217 3481-3481/com.seafile.seadroid2 W/ResourceType: Too many attribute references, stopped at: 0x0101009b\r\n01-24 16:31:38.217 3481-3481/com.seafile.seadroid2 D/AndroidRuntime: Shutting down VM\r\n01-24 16:31:38.217 3481-3481/com.seafile.seadroid2 W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xb0d1ab20)\r\n01-24 16:31:38.217 3481-3481/com.seafile.seadroid2 E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                                     Process: com.seafile.seadroid2, PID: 3481\r\n                                                                     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.seafile.seadroid2/com.seafile.seadroid2.ui.activity.FileActivity}: android.view.InflateException: Binary XML file line #64: Error inflating class Button\r\n                                                                         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)\r\n                                                                         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)\r\n                                                                         at android.app.ActivityThread.access$800(ActivityThread.java:135)\r\n                                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)\r\n                                                                         at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                                         at android.os.Looper.loop(Looper.java:136)\r\n                                                                         at android.app.ActivityThread.main(ActivityThread.java:5017)\r\n                                                                         at java.lang.reflect.Method.invokeNative(Native Method)\r\n                                                                         at java.lang.reflect.Method.invoke(Method.java:515)\r\n                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)\r\n                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)\r\n                                                                         at dalvik.system.NativeStart.main(Native Method)\r\n                                                                      Caused by: android.view.InflateException: Binary XML file line #64: Error inflating class Button\r\n                                                                         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:714)\r\n                                                                         at android.view.LayoutInflater.rInflate(LayoutInflater.java:756)\r\n                                                                         at android.view.LayoutInflater.rInflate(LayoutInflater.java:759)\r\n                                                                         at android.view.LayoutInflater.rInflate(LayoutInflater.java:759)\r\n                                                                         at android.view.LayoutInflater.inflate(LayoutInflater.java:492)\r\n                                                                         at android.view.LayoutInflater.inflate(LayoutInflater.java:397)\r\n                                                                         at android.view.LayoutInflater.inflate(LayoutInflater.java:353)\r\n                                                                         at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:256)\r\n                                                                         at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)\r\n                                                                         at com.seafile.seadroid2.ui.activity.BaseActivity.setContentView(BaseActivity.java:71)\r\n                                                                         at com.seafile.seadroid2.ui.activity.FileActivity.onCreate(FileActivity.java:82)\r\n                                                                         at android.app.Activity.performCreate(Activity.java:5231)\r\n                                                                         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)\r\n                                                                         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)\r\n                                                                         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) \r\n                                                                         at android.app.ActivityThread.access$800(ActivityThread.java:135) \r\n                                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) \r\n                                                                         at android.os.Handler.dispatchMessage(Handler.java:102) \r\n                                                                         at android.os.Looper.loop(Looper.java:136) \r\n                                                                         at android.app.ActivityThread.main(ActivityThread.java:5017) \r\n                                                                         at java.lang.reflect.Method.invokeNative(Native Method) \r\n                                                                         at java.lang.reflect.Method.invoke(Method.java:515) \r\n                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) \r\n                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) \r\n                                                                         at dalvik.system.NativeStart.main(Native Method) \r\n                                                                      Caused by: java.lang.UnsupportedOperationException: Can't convert to color: type=0x2\r\n                                                                         at android.content.res.TypedArray.getColor(TypedArray.java:327)\r\n                                                                         at android.widget.TextView.<init>(TextView.java:677)\r\n                                                                         at android.widget.Button.<init>(Button.java:107)\r\n                                                                         at android.support.v7.widget.AppCompatButton.<init>(AppCompatButton.java:62)\r\n                                                                         at android.support.v7.widget.AppCompatButton.<init>(AppCompatButton.java:58)\r\n                                                                         at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:98)\r\n                                                                         at android.support.v7.app.AppCompatDelegateImplV7.createView(AppCompatDelegateImplV7.java:938)\r\n                                                                         at android.support.v7.app.AppCompatDelegateImplV7.onCreateView(AppCompatDelegateImplV7.java:992)\r\n                                                                         at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)\r\n                                                                         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)\r\n                                                                         at android.view.LayoutInflater.rInflate(LayoutInflater.java:756) \r\n                                                                         at android.view.LayoutInflater.rInflate(LayoutInflater.java:759) \r\n                                                                         at android.view.LayoutInflater.rInflate(LayoutInflater.java:759) \r\n                                                                         at android.view.LayoutInflater.inflate(LayoutInflater.java:492) \r\n                                                                         at android.view.LayoutInflater.inflate(LayoutInflater.java:397) \r\n                                                                         at android.view.LayoutInflater.inflate(LayoutInflater.java:353) \r\n                                                                         at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:256) \r\n                                                                         at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109) \r\n                                                                         at com.seafile.seadroid2.ui.activity.BaseActivity.setContentView(BaseActivity.java:71) \r\n                                                                         at com.seafile.seadroid2.ui.activity.FileActivity.onCreate(FileActivity.java:82) \r\n                                                                         at android.app.Activity.performCreate(Activity.java:5231) \r\n                                                                         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) \r\n                                                                         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) \r\n                                                                         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) \r\n                                                                         at android.app.ActivityThread.access$800(ActivityThread.java:135) \r\n                                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) \r\n                                                                         at android.os.Handler.dispatchMessage(Handler.java:102) \r\n                                                                         at android.os.Looper.loop(Looper.java:136) \r\n                                                                         at android.app.ActivityThread.main(ActivityThread.java:5017) \r\n                                                                         at java.lang.reflect.Method.invokeNative(Native Method) \r\n                                                                         at java.lang.reflect.Method.invoke(Method.java:515) \r\n                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) \r\n                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) \r\n                                                                         at dalvik.system.NativeStart.main(Native Method) \r\n01-24 16:31:39.367 3481-3481/com.seafile.seadroid2 I/Process: Sending signal. PID: 3481 SIG: 9\r\n```"},"comment":{"url":"https://api.github.com/repos/haiwen/seadroid/issues/comments/177613107","html_url":"https://github.com/haiwen/seadroid/issues/478#issuecomment-177613107","issue_url":"https://api.github.com/repos/haiwen/seadroid/issues/478","id":177613107,"user":{"login":"forouher","id":676900,"avatar_url":"https://avatars.githubusercontent.com/u/676900?v=3","gravatar_id":"","url":"https://api.github.com/users/forouher","html_url":"https://github.com/forouher","followers_url":"https://api.github.com/users/forouher/followers","following_url":"https://api.github.com/users/forouher/following{/other_user}","gists_url":"https://api.github.com/users/forouher/gists{/gist_id}","starred_url":"https://api.github.com/users/forouher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forouher/subscriptions","organizations_url":"https://api.github.com/users/forouher/orgs","repos_url":"https://api.github.com/users/forouher/repos","events_url":"https://api.github.com/users/forouher/events{/privacy}","received_events_url":"https://api.github.com/users/forouher/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T21:17:16Z","updated_at":"2016-01-31T21:17:16Z","body":"Yepp, #479 fixes the bug in the emulator. Thanks!"}}