mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2024-12-24 23:43:10 +01:00
fixed #414
This commit is contained in:
parent
8314a84c35
commit
d7dc65c7a6
@ -87,7 +87,7 @@ dependencies {
|
||||
compile 'com.commonsware.cwac:layouts:0.4.2'
|
||||
compile 'com.rengwuxian.materialedittext:library:2.1.4'
|
||||
compile 'com.pnikosis:materialish-progress:1.7'
|
||||
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.7'
|
||||
// compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.7'
|
||||
compile 'com.github.johnpersano:supertoasts:1.3.4.1@aar'
|
||||
compile 'com.github.mariotaku:MessageBubbleView:1.2'
|
||||
compile 'com.github.mariotaku:DragSortListView:0.6.1'
|
||||
|
@ -41,6 +41,10 @@
|
||||
<uses-permission android:name="org.mariotaku.twidere.permission.UPLOAD_MEDIA"/>
|
||||
<uses-permission android:name="org.mariotaku.twidere.permission.SYNC_TIMELINE"/>
|
||||
|
||||
<uses-permission
|
||||
android:name="android.permission.READ_PHONE_STATE"
|
||||
tools:node="remove"/>
|
||||
|
||||
<permission-group
|
||||
android:name="org.mariotaku.twidere.permission.PERMISSION_GROUP"
|
||||
android:label="@string/app_name"/>
|
||||
|
@ -242,7 +242,7 @@ public class TwidereApplication extends MultiDexApplication implements Constants
|
||||
break;
|
||||
}
|
||||
case KEY_EMOJI_SUPPORT: {
|
||||
DependencyHolder.get(this).getExternalThemeManager().initEmojiSupport();
|
||||
DependencyHolder.get(this).getExternalThemeManager().reloadEmojiPreferences();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -62,14 +62,18 @@ public class ExternalThemeManager implements Constants {
|
||||
final ComponentName componentName = ComponentName.unflattenFromString(emojiComponentName);
|
||||
if (componentName != null) {
|
||||
emojiPackageName = componentName.getPackageName();
|
||||
} else {
|
||||
emojiPackageName = null;
|
||||
}
|
||||
} else {
|
||||
emojiPackageName = null;
|
||||
}
|
||||
initEmojiSupport();
|
||||
}
|
||||
|
||||
public void initEmojiSupport() {
|
||||
if (emojiPackageName == null) {
|
||||
emojiPackageName = null;
|
||||
emoji = null;
|
||||
return;
|
||||
}
|
||||
emoji = new Emoji(application, emojiPackageName);
|
||||
|
@ -1,37 +0,0 @@
|
||||
/*
|
||||
* Twidere - Twitter client for Android
|
||||
*
|
||||
* Copyright (C) 2012-2015 Mariotaku Lee <mariotaku.lee@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package pl.droidsonroids.gif;
|
||||
|
||||
/**
|
||||
* Created by mariotaku on 15/4/21.
|
||||
*/
|
||||
public class GifSupportChecker {
|
||||
|
||||
public static boolean isSupported() {
|
||||
try {
|
||||
// Just make it trying to load native library
|
||||
System.identityHashCode(GifInfoHandle.NULL_INFO);
|
||||
} catch (Throwable t) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user