Avoid potential negative array index access to cached text.
[LibreOffice.git] / android / source / src / java / org / libreoffice / LibreOfficeApplication.java
blobebe54cf27c645e6d4ad4b1e97e191cba7ed5eb1d
1 /*
3 * * This file is part of the LibreOffice project.
4 * *
5 * * This Source Code Form is subject to the terms of the Mozilla Public
6 * * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 */
11 package org.libreoffice;
13 import android.content.Context;
14 import android.os.Handler;
15 import androidx.multidex.MultiDexApplication;
17 public class LibreOfficeApplication extends MultiDexApplication {
19 private static Handler mainHandler;
21 public LibreOfficeApplication() {
22 mainHandler = new Handler();
25 public static Handler getMainHandler() {
26 return mainHandler;
29 @Override
30 protected void attachBaseContext(Context base) {
31 super.attachBaseContext(LocaleHelper.onAttach(base));