use of org.aisen.android.ui.fragment.ABaseFragment in project AisenWeiBo by wangdan.
the class BaseActivity method onHomeClick.
protected boolean onHomeClick() {
if (mHelper != null) {
boolean handle = mHelper.onHomeClick();
if (handle)
return true;
}
Set<String> keys = fragmentRefs.keySet();
for (String key : keys) {
WeakReference<ABaseFragment> fragmentRef = fragmentRefs.get(key);
ABaseFragment fragment = fragmentRef.get();
if (fragment != null && fragment.onHomeClick())
return true;
}
return onBackClick();
}
use of org.aisen.android.ui.fragment.ABaseFragment in project AisenWeiBo by wangdan.
the class BaseActivity method onBackClick.
public boolean onBackClick() {
if (mHelper != null) {
boolean handle = mHelper.onBackClick();
if (handle)
return true;
}
Set<String> keys = fragmentRefs.keySet();
for (String key : keys) {
WeakReference<ABaseFragment> fragmentRef = fragmentRefs.get(key);
ABaseFragment fragment = fragmentRef.get();
if (fragment != null && fragment.onBackClick())
return true;
}
finish();
return true;
}
use of org.aisen.android.ui.fragment.ABaseFragment in project AisenWeiBo by wangdan.
the class BaseActivity method onToolbarDoubleClick.
@Override
public boolean onToolbarDoubleClick() {
Set<String> keys = fragmentRefs.keySet();
for (String key : keys) {
WeakReference<ABaseFragment> fragmentRef = fragmentRefs.get(key);
ABaseFragment fragment = fragmentRef.get();
if (fragment != null && fragment instanceof AsToolbar.OnToolbarDoubleClick) {
if (((AsToolbar.OnToolbarDoubleClick) fragment).onToolbarDoubleClick())
return true;
}
}
return false;
}
Aggregations