Project

General

Profile

« Previous | Next » 

Revision 801b16db

Added by Leszek Koltunski over 4 years ago

Minor.

View differences:

src/main/java/org/distorted/dialogs/RubikDialogAbout.java
44 44
    super.onStart();
45 45

  
46 46
    Dialog dialog = getDialog();
47
    dialog.setCanceledOnTouchOutside(false);
48 47

  
49
    Window window = dialog.getWindow();
50

  
51
    if( window!=null )
48
    if( dialog!=null )
52 49
      {
53
      window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
50
      dialog.setCanceledOnTouchOutside(false);
51

  
52
      Window window = dialog.getWindow();
53

  
54
      if( window!=null )
55
        {
56
        window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
57
        }
54 58
      }
55 59
    }
56 60

  
src/main/java/org/distorted/dialogs/RubikDialogEffects.java
57 57
    super.onStart();
58 58

  
59 59
    Dialog dialog = getDialog();
60
    dialog.setCanceledOnTouchOutside(false);
61 60

  
62
    Window window = dialog.getWindow();
63

  
64
    if( window!=null )
61
    if( dialog!=null )
65 62
      {
66
      window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
63
      dialog.setCanceledOnTouchOutside(false);
64

  
65
      Window window = dialog.getWindow();
66

  
67
      if( window!=null )
68
        {
69
        window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
70
        }
67 71
      }
68 72
    }
69 73

  
src/main/java/org/distorted/dialogs/RubikDialogNewRecord.java
49 49
    super.onStart();
50 50

  
51 51
    Dialog dialog = getDialog();
52
    dialog.setCanceledOnTouchOutside(false);
53 52

  
54
    Window window = dialog.getWindow();
55

  
56
    if( window!=null )
53
    if( dialog!=null )
57 54
      {
58
      window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
55
      dialog.setCanceledOnTouchOutside(false);
56

  
57
      Window window = dialog.getWindow();
58

  
59
      if( window!=null )
60
        {
61
        window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
62
        }
59 63
      }
60 64
    }
61 65

  
src/main/java/org/distorted/dialogs/RubikDialogScores.java
52 52
    super.onStart();
53 53

  
54 54
    Dialog dialog = getDialog();
55
    dialog.setCanceledOnTouchOutside(false);
56 55

  
57
    Window window = dialog.getWindow();
58

  
59
    if( window!=null )
56
    if( dialog!=null )
60 57
      {
61
      window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
58
      dialog.setCanceledOnTouchOutside(false);
59

  
60
      Window window = dialog.getWindow();
61

  
62
      if( window!=null )
63
        {
64
        window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
65
        }
62 66
      }
63 67
    }
64 68

  
src/main/java/org/distorted/dialogs/RubikDialogSetName.java
68 68
        {
69 69
        window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
70 70
        }
71
      }
72 71

  
73
    Button positiveButton = dialog.getButton(Dialog.BUTTON_POSITIVE);
72
      Button positiveButton = dialog.getButton(Dialog.BUTTON_POSITIVE);
74 73

  
75
    if( positiveButton!=null )
76
      {
77
      String editName = mEdit.getText().toString();
78
      positiveButton.setEnabled(editName.length()>0);
74
      if( positiveButton!=null )
75
        {
76
        String editName = mEdit.getText().toString();
77
        positiveButton.setEnabled(editName.length()>0);
78
        }
79 79
      }
80 80
    }
81 81

  
src/main/java/org/distorted/dialogs/RubikDialogSolved.java
46 46
    super.onStart();
47 47

  
48 48
    Dialog dialog = getDialog();
49
    dialog.setCanceledOnTouchOutside(false);
50 49

  
51
    Window window = dialog.getWindow();
52

  
53
    if( window!=null )
50
    if( dialog!=null )
54 51
      {
55
      window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
52
      dialog.setCanceledOnTouchOutside(false);
53

  
54
      Window window = dialog.getWindow();
55

  
56
      if( window!=null )
57
        {
58
        window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
59
        }
56 60
      }
57 61
    }
58 62

  
src/main/java/org/distorted/dialogs/RubikDialogSolverError.java
44 44
    super.onStart();
45 45

  
46 46
    Dialog dialog = getDialog();
47
    dialog.setCanceledOnTouchOutside(false);
48 47

  
49
    Window window = dialog.getWindow();
50

  
51
    if( window!=null )
48
    if( dialog!=null )
52 49
      {
53
      window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
50
      dialog.setCanceledOnTouchOutside(false);
51

  
52
      Window window = dialog.getWindow();
53

  
54
      if( window!=null )
55
        {
56
        window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
57
        }
54 58
      }
55 59
    }
56 60

  

Also available in: Unified diff