mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
@@ -20,6 +20,7 @@
|
|||||||
package org.isoron.uhabits.activities.habits.show;
|
package org.isoron.uhabits.activities.habits.show;
|
||||||
|
|
||||||
import android.content.*;
|
import android.content.*;
|
||||||
|
import android.os.*;
|
||||||
import android.support.annotation.*;
|
import android.support.annotation.*;
|
||||||
import android.support.v7.widget.*;
|
import android.support.v7.widget.*;
|
||||||
|
|
||||||
@@ -106,6 +107,10 @@ public class ShowHabitRootView extends BaseRootView
|
|||||||
@Override
|
@Override
|
||||||
public void onModelChange()
|
public void onModelChange()
|
||||||
{
|
{
|
||||||
|
new Handler(Looper.getMainLooper()).post(() -> {
|
||||||
|
toolbar.setTitle(habit.getName());
|
||||||
|
});
|
||||||
|
|
||||||
controller.onToolbarChanged();
|
controller.onToolbarChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user