Skip to content
Snippets Groups Projects
Commit ebf2006c authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Tune app launch

parent df65474f
No related branches found
Tags 3.0.11.1
No related merge requests found
......@@ -86,11 +86,19 @@ public class VLCApplication extends Application {
private static int sDialogCounter = 0;
public VLCApplication() {
super();
instance = this;
}
@Override
public void onCreate() {
instance = this;
super.onCreate();
sSettings = PreferenceManager.getDefaultSharedPreferences(this);
sTV = AndroidDevices.isAndroidTv || (!AndroidDevices.isChromeBook && !AndroidDevices.hasTsp);
// Disable remote control receiver on Fire TV.
if (!AndroidDevices.hasTsp) AndroidDevices.setRemoteControlReceiverEnabled(false);
setLocale();
......@@ -102,14 +110,8 @@ public class VLCApplication extends Application {
// Prepare cache folder constants
AudioUtil.prepareCacheFolder(instance);
sTV = AndroidDevices.isAndroidTv || (!AndroidDevices.isChromeBook && !AndroidDevices.hasTsp);
if (!VLCInstance.testCompatibleCPU(instance)) return;
Dialog.setCallbacks(VLCInstance.get(), mDialogCallbacks);
// Disable remote control receiver on Fire TV.
if (!AndroidDevices.hasTsp)
AndroidDevices.setRemoteControlReceiverEnabled(false);
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment