Code example for FragmentActivity

Methods: setTitle

0
        if (startDate == null) {
            startDate = new Date(System.currentTimeMillis() - 60 * 60 * 1000);
        } 
        Long seconds = Math.max((new Date().getTime() - startDate.getTime()) / 1000, 60);
        if (!loaded) {
            setTitle(issueKey);
            fragment.prepare(issueKey, startDate, seconds, loginInfo);
            loaded = true;
        } 
    } 
 
    @Override 
    public void onWorkLogged() { 
        setResult(RESULT_OK); 
        finish(); 
    } 
 
    @Override 
    public void onWorkDiscarded() { 
        setResult(RESULT_CANCELED); 
        finish();