當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。