src/main/java/de/dennisguse/opentracks/chart/ChartFragment.java
private void runOnUiThread(Runnable runnable) {
        Activity fragmentActivity = getActivity();
        if (fragmentActivity != null) {
            fragmentActivity.runOnUiThread(runnable);
        }
    }
/**
     * Runs a runnable on the UI thread if possible.
     *
     * @param runnable the runnable
     */
Runs a runnable on the UI thread if possible.
@param runnable the runnable
Runs a runnable on the UI thread if possible . @param runnable the runnable
private void runOnUiThread(Runnable runnable) {
        Activity fragmentActivity = getActivity();
        if (fragmentActivity != null) {
            fragmentActivity.runOnUiThread(runnable);
        }
    }
private void runOnUiThread ( Runnable runnable ) { Activity fragmentActivity = getActivity ( ) ; if ( fragmentActivity != null ) { fragmentActivity . runOnUiThread ( runnable ) ; } }
Runs a runnable on the UI thread if possible.
Runs a runnable on the UI thread if possible .