Open candeiasdan opened 8 years ago
What version of build tools etc are you using? Version of Android? Version of Calligraphy? etc..
Android Studio 2.0 Preview 5 Gradle: com.android.tools.build:gradle:2.0.0-alpha5 Library version: uk.co.chrisjenx:calligraphy:2.1.0 BuildToolVersion: 23.0.2 CompileSdkVersion: 23 MinSdkVersion: 17 Pro guard: minifyEnabled false
Using instant run?
On Wed, 17 Feb 2016, 18:23 candeiasdan notifications@github.com wrote:
Android Studio 2.0 Preview 5 Gradle: com.android.tools.build:gradle:2.0.0-alpha5 Library version: uk.co.chrisjenx:calligraphy:2.1.0 BuildToolVersion: 23.0.2 CompileSdkVersion: 23 MinSdkVersion: 17 Pro guard: minifyEnabled false
— Reply to this email directly or view it on GitHub https://github.com/chrisjenx/Calligraphy/issues/250#issuecomment-185335538 .
No. Running the app for the first time everything works fine. Once i Stop it and re-open it, the fonts are gone.
OK. Same issue with build tools 1.5 and release builds?
On Wed, 17 Feb 2016, 18:34 candeiasdan notifications@github.com wrote:
No. Running the app for the first time everything works fine. Once i Stop it and re-open it, the fonts are gone.
— Reply to this email directly or view it on GitHub https://github.com/chrisjenx/Calligraphy/issues/250#issuecomment-185340252 .
Build tools: classpath 'com.android.tools.build:gradle:1.5.0' Build Variante: Release and debug.
Same problem.
OK, Are you able to reproduce the issue in the sample app? I'm wondering if it's either the font or another library? Also are you testing on Android 5.0?
Everything works fine in a sample app, starting and stopping, no problem. Testing on 4.4.4
As sample app made a ListView with two row types: 1) textview where i explicitly define font family 2) textview without font family Result: the calligraphy is applied to both layouts.
@candeiasdan if it works in a sample app, this suggests something else is interfering. What else are you running in your app?
If the app runs for the first time (after install) i can see my custom font. If now I stop the app and open it again the font is not being set.
on my BaseApplication class i have onCreate():
MainActivity:
I have 3 different fonts inside my app. Whenever i need to use some specific font i do:
Am i missing something? Debugging the app, every time i open the app it passes through onCreate() (BaseApplication class), attachBaseContext. What can be wrong here?