-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmailIssuesPopUp.java
More file actions
44 lines (38 loc) · 1.45 KB
/
Copy pathEmailIssuesPopUp.java
File metadata and controls
44 lines (38 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.ione.ione;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
/**
* Author: Shiv Bhushan Tripathi.
* Date Started: 07/ 02/ 2017.
* Description: Class that handle welcome and login Screen.
* @copyright iOne: A company of Ikai.
*/
public class EmailIssuesPopUp extends DialogFragment{
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
// Initializing and setting rest of things
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
LayoutInflater inflater = getActivity().getLayoutInflater();
View view = inflater.inflate(R.layout.email_issues_pop_up, null);
TextView text_view = (TextView) view.findViewById(R.id.text_message);
Bundle bundle = getArguments();
String message_sting = bundle.getString("Message");
text_view.setText(message_sting.toCharArray(), 0, message_sting.length());
builder.setView(view);
setCancelable(false);
// Setting positive button
builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dismiss();
}
});
return (builder.create());
}
}