Project

General

Profile

Download (2.03 KB) Statistics
| Branch: | Tag: | Revision:

magiccube / src / main / java / org / distorted / dialogs / RubikDialogAbandon.java @ 5e6d3e7d

1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2020 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6
// Magic Cube is proprietary software licensed under an EULA which you should have received      //
7
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html        //
8
///////////////////////////////////////////////////////////////////////////////////////////////////
9

    
10
package org.distorted.dialogs;
11

    
12
import android.app.Dialog;
13
import android.view.View;
14

    
15
import androidx.fragment.app.FragmentActivity;
16

    
17
import org.distorted.main.R;
18
import org.distorted.main.RubikActivity;
19
import org.distorted.screens.ScreenList;
20

    
21
///////////////////////////////////////////////////////////////////////////////////////////////////
22

    
23
public class RubikDialogAbandon extends RubikDialogAbstract
24
  {
25
  public int getResource()      { return R.layout.abandon_solve; }
26
  public int getTitleResource() { return -1; }
27
  public boolean hasArgument()  { return false; }
28
  public int getPositive()      { return R.string.yes; }
29
  public int getNegative()      { return R.string.no; }
30

    
31
///////////////////////////////////////////////////////////////////////////////////////////////////
32

    
33
  public void positiveAction()
34
    {
35
    final RubikActivity ract = (RubikActivity)getContext();
36
    ScreenList.goBack(ract);
37
    }
38

    
39
///////////////////////////////////////////////////////////////////////////////////////////////////
40

    
41
  public void negativeAction()
42
    {
43

    
44
    }
45

    
46
///////////////////////////////////////////////////////////////////////////////////////////////////
47

    
48
  public void prepareBody(Dialog dialog, View view, FragmentActivity act, float size)
49
    {
50

    
51
    }
52
  }
(1-1/26)