Project

General

Profile

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

magiccube / src / main / java / org / distorted / dialogs / RubikDialogAbandon.java @ 4bd09fe2

1 9f006481 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2020 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6 68191e7d Leszek Koltunski
// 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 9f006481 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
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 7bb30586 leszek
import org.distorted.playui.PlayActivity;
19
import org.distorted.playui.ScreenList;
20 9f006481 Leszek Koltunski
21
///////////////////////////////////////////////////////////////////////////////////////////////////
22
23 b5c2adb4 Leszek Koltunski
public class RubikDialogAbandon extends RubikDialogAbstract
24 9f006481 Leszek Koltunski
  {
25 f8a21f6b Leszek Koltunski
  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 7bb30586 leszek
  public void negativeAction()  { }
31
  public void prepareBody(Dialog dialog, View view, FragmentActivity act, float size) { }
32 c02fa107 Leszek Koltunski
33 b5c2adb4 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
34 9f006481 Leszek Koltunski
35 f8a21f6b Leszek Koltunski
  public void positiveAction()
36 b5c2adb4 Leszek Koltunski
    {
37 7bb30586 leszek
    final PlayActivity act = (PlayActivity)getContext();
38
    ScreenList.goBack(act);
39 9f006481 Leszek Koltunski
    }
40
  }