当前位置: 首页>>代码示例>>Java>>正文


Java MessageNotifier.setVisibleThread方法代码示例

本文整理汇总了Java中org.thoughtcrime.securesms.notifications.MessageNotifier.setVisibleThread方法的典型用法代码示例。如果您正苦于以下问题:Java MessageNotifier.setVisibleThread方法的具体用法?Java MessageNotifier.setVisibleThread怎么用?Java MessageNotifier.setVisibleThread使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.thoughtcrime.securesms.notifications.MessageNotifier的用法示例。


在下文中一共展示了MessageNotifier.setVisibleThread方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onResume

import org.thoughtcrime.securesms.notifications.MessageNotifier; //导入方法依赖的package包/类
@Override
protected void onResume() {
  super.onResume();
  dynamicTheme.onResume(this);
  dynamicLanguage.onResume(this);
  quickAttachmentDrawer.onResume();

  initializeEnabledCheck();
  initializeMmsEnabledCheck();
  composeText.setTransport(sendButton.getSelectedTransport());

  titleView.setTitle(recipients);
  setActionBarColor(recipients.getColor());
  setBlockedUserState(recipients, isSecureText, isDefaultSms);
  calculateCharactersRemaining();

  MessageNotifier.setVisibleThread(threadId);
  markThreadAsRead();

  Log.w(TAG, "onResume() Finished: " + (System.currentTimeMillis() - getIntent().getLongExtra(TIMING_EXTRA, 0)));
}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:22,代码来源:ConversationActivity.java

示例2: sendComplete

import org.thoughtcrime.securesms.notifications.MessageNotifier; //导入方法依赖的package包/类
protected void sendComplete(long threadId) {
  boolean refreshFragment = (threadId != this.threadId);
  this.threadId = threadId;

  if (fragment == null || !fragment.isVisible() || isFinishing()) {
    return;
  }

  fragment.setLastSeen(0);

  if (refreshFragment) {
    fragment.reload(recipients, threadId);
    MessageNotifier.setVisibleThread(threadId);
  }

  fragment.scrollToBottom();
  attachmentManager.cleanup();
}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:19,代码来源:ConversationActivity.java

示例3: onResume

import org.thoughtcrime.securesms.notifications.MessageNotifier; //导入方法依赖的package包/类
@Override
protected void onResume() {
  super.onResume();
  dynamicTheme.onResume(this);
  dynamicLanguage.onResume(this);
  quickAttachmentDrawer.onResume();

  initializeEnabledCheck();
  initializeMmsEnabledCheck();
  initializeIdentityRecords();
  composeText.setTransport(sendButton.getSelectedTransport());

  titleView.setTitle(recipients);
  setActionBarColor(recipients.getColor());
  setBlockedUserState(recipients, isSecureText, isDefaultSms);
  calculateCharactersRemaining();

  MessageNotifier.setVisibleThread(threadId);
  markThreadAsRead();

  Log.w(TAG, "onResume() Finished: " + (System.currentTimeMillis() - getIntent().getLongExtra(TIMING_EXTRA, 0)));
}
 
开发者ID:CableIM,项目名称:Cable-Android,代码行数:23,代码来源:ConversationActivity.java

示例4: onResume

import org.thoughtcrime.securesms.notifications.MessageNotifier; //导入方法依赖的package包/类
@Override
protected void onResume() {
  super.onResume();
  dynamicTheme.onResume(this);
  dynamicLanguage.onResume(this);

  initializeSecurity();
  initializeTitleBar();
  initializeEnabledCheck();
  initializeMmsEnabledCheck();
  initializeIme();
  initializeCharactersLeftViewEnabledCheck();
  calculateCharactersRemaining();

  MessageNotifier.setVisibleThread(threadId);
  markThreadAsRead();
}
 
开发者ID:redcracker,项目名称:TextSecure,代码行数:18,代码来源:ConversationActivity.java

示例5: onPause

import org.thoughtcrime.securesms.notifications.MessageNotifier; //导入方法依赖的package包/类
@Override
protected void onPause() {
  super.onPause();
  MessageNotifier.setVisibleThread(-1L);
  if (isFinishing()) overridePendingTransition(R.anim.fade_scale_in, R.anim.slide_to_right);
  quickAttachmentDrawer.onPause();
  inputPanel.onPause();

  fragment.setLastSeen(System.currentTimeMillis());
  markLastSeen();
  AudioSlidePlayer.stopAll();
  EventBus.getDefault().unregister(this);
}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:14,代码来源:ConversationActivity.java

示例6: onResume

import org.thoughtcrime.securesms.notifications.MessageNotifier; //导入方法依赖的package包/类
@Override
protected void onResume() {
  super.onResume();
  dynamicTheme.onResume(this);
  dynamicLanguage.onResume(this);
  getSupportActionBar().setTitle(R.string.AndroidManifest__message_details);

  MessageNotifier.setVisibleThread(threadId);
}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:10,代码来源:MessageDetailsActivity.java

示例7: onPause

import org.thoughtcrime.securesms.notifications.MessageNotifier; //导入方法依赖的package包/类
@Override
protected void onPause() {
  super.onPause();
  MessageNotifier.setVisibleThread(-1L);
}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:6,代码来源:MessageDetailsActivity.java

示例8: onPause

import org.thoughtcrime.securesms.notifications.MessageNotifier; //导入方法依赖的package包/类
@Override
protected void onPause() {
  super.onPause();
  MessageNotifier.setVisibleThread(-1L);
  if (isFinishing()) overridePendingTransition(R.anim.fade_scale_in, R.anim.slide_to_right);
}
 
开发者ID:redcracker,项目名称:TextSecure,代码行数:7,代码来源:ConversationActivity.java


注:本文中的org.thoughtcrime.securesms.notifications.MessageNotifier.setVisibleThread方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。