本文整理汇总了Java中com.afollestad.assent.Assent.setFragment方法的典型用法代码示例。如果您正苦于以下问题:Java Assent.setFragment方法的具体用法?Java Assent.setFragment怎么用?Java Assent.setFragment使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.afollestad.assent.Assent
的用法示例。
在下文中一共展示了Assent.setFragment方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onResume
import com.afollestad.assent.Assent; //导入方法依赖的package包/类
@Override
public void onResume() {
super.onResume();
Assent.setFragment(this, this);
mMapView.onResume();
if (isPlacesEnabled()) {
if (getView().getMeasuredHeight() == 0)
getView().post(new Runnable() {
@Override
public void run() {
prepareLayout(true);
}
});
else
prepareLayout(true);
}
askPermissions();
}
示例2: onResume
import com.afollestad.assent.Assent; //导入方法依赖的package包/类
@Override
public void onResume() {
super.onResume();
Assent.setFragment(this, this);
if (Authenticator.getDefaultAccount(getActivity()) == null) {
NumberValidation.start(getActivity());
getActivity().finish();
return;
}
// hold message center
MessageCenterService.hold(getActivity(), true);
ComposeMessage activity = getParentActivity();
if (activity == null || !activity.hasLostFocus() || activity.hasWindowFocus()) {
onFocus();
}
}
示例3: onPause
import com.afollestad.assent.Assent; //导入方法依赖的package包/类
@Override
public void onPause() {
super.onPause();
if (getActivity() != null && getActivity().isFinishing())
Assent.setFragment(this, null);
mMapView.onPause();
}
示例4: onResume
import com.afollestad.assent.Assent; //导入方法依赖的package包/类
@Override
public void onResume() {
super.onResume();
Assent.setFragment(this, this);
mMapView.onResume();
askPermissions();
}
示例5: onCreate
import com.afollestad.assent.Assent; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Assent.setFragment(this, this);
setHasOptionsMenu(true);
mQueryHandler = new MessageListQueryHandler(this);
mHandler = new Handler();
// list adapter creation is post-poned
}
示例6: onCreate
import com.afollestad.assent.Assent; //导入方法依赖的package包/类
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Assent.setFragment(this, this);
setHasOptionsMenu(true);
}