InflationX / Calligraphy

Custom fonts in Android the easy way...
Apache License 2.0
1.09k stars 83 forks source link

Check current toolbar's subTitle and set valid subTitle #51

Open ted-prnd opened 4 years ago

ted-prnd commented 4 years ago

Problem

Reason

  1. When activity start ToolbarLayoutListener get toolbar's original subTitle and set blank string https://github.com/InflationX/Calligraphy/blob/881f11fe37491aee56ae155eb1ae4ff0599373ae/calligraphy/src/main/java/io/github/inflationx/calligraphy3/Calligraphy.java#L231
  2. After view shown, ToolbarLayoutListener set original subTitle to toolbar https://github.com/InflationX/Calligraphy/blob/881f11fe37491aee56ae155eb1ae4ff0599373ae/calligraphy/src/main/java/io/github/inflationx/calligraphy3/Calligraphy.java#L253

Solution