Browse Source

Merge pull request #659 from plinehan/master

Don't catch-and-ignore Throwable.
Aidan Follestad 9 năm trước cách đây
mục cha
commit
aadcf7a66b

+ 2 - 2
library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

@@ -504,13 +504,13 @@ public class MaterialDialog extends DialogBase implements
                         this.mediumFont = Typeface.create("sans-serif-medium", Typeface.NORMAL);
                     else
                         this.mediumFont = Typeface.create("sans-serif", Typeface.BOLD);
-                } catch (Throwable ignored) {
+                } catch (Exception ignored) {
                 }
             }
             if (this.regularFont == null) {
                 try {
                     this.regularFont = Typeface.create("sans-serif", Typeface.NORMAL);
-                } catch (Throwable ignored) {
+                } catch (Exception ignored) {
                 }
             }
         }