Java Code Examples for android.app.Dialog#setDismissMessage()

The following examples show how to use android.app.Dialog#setDismissMessage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EnterJidDialog.java    From Conversations with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onDestroyView() {
	Dialog dialog = getDialog();
	if (dialog != null && getRetainInstance()) {
		dialog.setDismissMessage(null);
	}
	super.onDestroyView();
}
 
Example 2
Source File: ProgressFragmentDialog.java    From Bluefruit_LE_Connect_Android with MIT License 5 votes vote down vote up
@Override
public void onDestroyView()
{
    Dialog dialog = getDialog();

    // Work around bug: http://code.google.com/p/android/issues/detail?id=17423
    if ((dialog != null) && getRetainInstance())
        dialog.setDismissMessage(null);

    super.onDestroyView();
}
 
Example 3
Source File: CreatePublicChannelDialog.java    From Conversations with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();
    if (dialog != null && getRetainInstance()) {
        dialog.setDismissMessage(null);
    }
    super.onDestroyView();
}
 
Example 4
Source File: ProgressDialogFragment.java    From arcgis-runtime-samples-android with Apache License 2.0 5 votes vote down vote up
@Override
public void onDestroyView() {
  Dialog dialog = getDialog();
  // handles https://code.google.com/p/android/issues/detail?id=17423
  if (dialog != null && getRetainInstance()) {
    dialog.setDismissMessage(null);
  }
  super.onDestroyView();
}
 
Example 5
Source File: ApplicationFilesFragmentDialog.java    From Bluefruit_LE_Connect_Android with MIT License 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();

    // Work around bug: http://code.google.com/p/android/issues/detail?id=17423
    if ((dialog != null) && getRetainInstance())
        dialog.setDismissMessage(null);

    super.onDestroyView();
}
 
Example 6
Source File: LocalBasemapAlertDialogFragment.java    From arcgis-runtime-samples-android with Apache License 2.0 5 votes vote down vote up
@Override
public void onDestroyView() {
  Dialog dialog = getDialog();
  // handles https://code.google.com/p/android/issues/detail?id=17423
  if (dialog != null && getRetainInstance()) {
    dialog.setDismissMessage(null);
  }
  super.onDestroyView();
}
 
Example 7
Source File: CreatePrivateGroupChatDialog.java    From Conversations with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();
    if (dialog != null && getRetainInstance()) {
        dialog.setDismissMessage(null);
    }
    super.onDestroyView();
}
 
Example 8
Source File: CreatePrivateGroupChatDialog.java    From Pix-Art-Messenger with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();
    if (dialog != null && getRetainInstance()) {
        dialog.setDismissMessage(null);
    }
    super.onDestroyView();
}
 
Example 9
Source File: JoinConferenceDialog.java    From Pix-Art-Messenger with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();
    if (dialog != null && getRetainInstance()) {
        dialog.setDismissMessage(null);
    }
    super.onDestroyView();
}
 
Example 10
Source File: CreatePublicChannelDialog.java    From Pix-Art-Messenger with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();
    if (dialog != null && getRetainInstance()) {
        dialog.setDismissMessage(null);
    }
    super.onDestroyView();
}
 
Example 11
Source File: ExtendedDialogFragment.java    From InviZible with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();
    // handles https://code.google.com/p/android/issues/detail?id=17423
    if (dialog != null && getRetainInstance()) {
        dialog.setDismissMessage(null);
    }

    super.onDestroyView();
}
 
Example 12
Source File: PrivateStoreDialog.java    From aptoide-client-v8 with GNU General Public License v3.0 5 votes vote down vote up
@Override public void onDestroyView() {
  Dialog dialog = getDialog();

  // Work around to the bug... : http://code.google.com/p/android/issues/detail?id=17423
  if ((dialog != null) && getRetainInstance()) dialog.setDismissMessage(null);

  super.onDestroyView();
}
 
Example 13
Source File: SetDefaultSmsActivity.java    From weMessage with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();

    if (dialog != null && getRetainInstance()) {
        dialog.setDismissMessage(null);
    }
    super.onDestroyView();
}
 
Example 14
Source File: DialogDisplayer.java    From weMessage with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();

    if (dialog != null && getRetainInstance()) {
        dialog.setDismissMessage(null);
    }
    super.onDestroyView();
}
 
Example 15
Source File: DialogDisplayer.java    From weMessage with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();

    if (dialog != null && getRetainInstance()) {
        dialog.setDismissMessage(null);
    }
    super.onDestroyView();
}
 
Example 16
Source File: DialogDisplayer.java    From weMessage with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();

    if (dialog != null && getRetainInstance()) {
        dialog.setDismissMessage(null);
    }
    super.onDestroyView();
}
 
Example 17
Source File: ScannerStatusFragmentDialog.java    From Bluefruit_LE_Connect_Android_V2 with MIT License 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();

    // Work around bug: http://code.google.com/p/android/issues/detail?id=17423
    if ((dialog != null) && getRetainInstance())
        dialog.setDismissMessage(null);

    super.onDestroyView();
}
 
Example 18
Source File: ProgressFragmentDialog.java    From Bluefruit_LE_Connect_Android_V2 with MIT License 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();

    // Work around bug: http://code.google.com/p/android/issues/detail?id=17423
    if ((dialog != null) && getRetainInstance())
        dialog.setDismissMessage(null);

    super.onDestroyView();
}
 
Example 19
Source File: DfuFilePickerFragment.java    From Bluefruit_LE_Connect_Android_V2 with MIT License 5 votes vote down vote up
@Override
public void onDestroyView() {
    Dialog dialog = getDialog();

    // Work around bug: http://code.google.com/p/android/issues/detail?id=17423
    if ((dialog != null) && getRetainInstance())
        dialog.setDismissMessage(null);

    super.onDestroyView();
}
 
Example 20
Source File: FeedbackBottomSheet.java    From graphhopper-navigation-android with MIT License 4 votes vote down vote up
private void removeDialogDismissMessage() {
  Dialog dialog = getDialog();
  if (dialog != null && getRetainInstance()) {
    dialog.setDismissMessage(null);
  }
}