Skip to content

Commit

Permalink
Disable downloading fonts for this release
Browse files Browse the repository at this point in the history
  • Loading branch information
c99koder committed Oct 28, 2017
1 parent 6185e29 commit c9c0d26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ dependencies {
compile "com.android.support:design:$supportLibVersion"
compile "com.android.support:recyclerview-v7:$supportLibVersion"
compile "com.android.support:customtabs:$supportLibVersion"
compile "com.android.support:support-emoji:$supportLibVersion"
compile "com.android.support:support-emoji-bundled:$supportLibVersion"
compile "com.google.android.gms:play-services-base:$playServicesVersion"
compile "com.google.android.gms:play-services-auth:$playServicesVersion"
compile "com.google.android.gms:play-services-identity:$playServicesVersion"
Expand Down
1 change: 1 addition & 0 deletions irccloud-android.iml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
<orderEntry type="library" name="com.android.databinding:baseLibrary:3.0.0@jar" level="project" />
<orderEntry type="library" name="org.solovyev.android.views:linear-layout-manager-0.5" level="project" />
<orderEntry type="library" name="android.arch.lifecycle:common:1.0.0@jar" level="project" />
<orderEntry type="library" name="com.android.support:support-emoji-bundled-27.0.0" level="project" />
<orderEntry type="library" name="com.android.support:support-core-utils-27.0.0" level="project" />
<orderEntry type="library" name="com.fasterxml.jackson.core:jackson-databind:2.9.2@jar" level="project" />
<orderEntry type="library" name="android.arch.lifecycle:runtime-1.0.0" level="project" />
Expand Down
7 changes: 4 additions & 3 deletions src/com/irccloud/android/IRCCloudApplicationBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import android.support.annotation.Nullable;
import android.support.text.emoji.EmojiCompat;
import android.support.text.emoji.FontRequestEmojiCompatConfig;
import android.support.text.emoji.bundled.BundledEmojiCompatConfig;
import android.support.v4.app.ActivityCompat;
import android.support.v4.provider.FontRequest;
import android.util.Log;
Expand Down Expand Up @@ -80,7 +81,7 @@ public void onCreate() {
FlowManager.init(new FlowConfig.Builder(this).build());

if(Build.VERSION.SDK_INT >= 19)
EmojiCompat.init(new FontRequestEmojiCompatConfig(getApplicationContext(), new FontRequest(
/*EmojiCompat.init(new FontRequestEmojiCompatConfig(getApplicationContext(), new FontRequest(
"com.google.android.gms.fonts",
"com.google.android.gms",
"Noto Color Emoji Compat",
Expand All @@ -99,8 +100,8 @@ public void onFailed(@Nullable Throwable throwable) {
Log.e("IRCCloud", "EmojiCompat initialization failed: ", throwable);
Crashlytics.logException(throwable);
}
}));
//EmojiCompat.init(new BundledEmojiCompatConfig(this).setReplaceAll(!prefs.getBoolean("preferSystemEmoji", true)));
}));*/
EmojiCompat.init(new BundledEmojiCompatConfig(this).setReplaceAll(!prefs.getBoolean("preferSystemEmoji", true)));
NetworkConnection.getInstance().registerForConnectivity();

//Disable HTTP keep-alive for our app, as some versions of Android will return an empty response
Expand Down

0 comments on commit c9c0d26

Please sign in to comment.