Permalink
Browse files

front: Move another popup dialog to Popups helper class.

  • Loading branch information...
littleguy77 committed May 8, 2015
1 parent 46b5516 commit 053a3ce46f75e2df37236d4167d861abccaceaf9
@@ -47,7 +47,6 @@
import paulscode.android.mupen64plusae.util.Notifier;
import paulscode.android.mupen64plusae.util.RomHeader;
import android.annotation.TargetApi;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
@@ -272,9 +271,7 @@ public void onClick( MenuItem menuItem )
// Popup a warning if the installation appears to be corrupt
if( !mAppData.isValidInstallation )
{
CharSequence title = getText( R.string.invalidInstall_title );
CharSequence message = getText( R.string.invalidInstall_message );
new Builder( this ).setTitle( title ).setMessage( message ).create().show();
Popups.showInvalidInstall( this );
}
if( savedInstanceState != null )
@@ -32,6 +32,13 @@
public class Popups
{
public static void showInvalidInstall( Context context )
{
CharSequence title = context.getText( R.string.invalidInstall_title );
CharSequence message = context.getText( R.string.invalidInstall_message );
new Builder( context ).setTitle( title ).setMessage( message ).create().show();
}
public static void showFaq( Context context )
{
CharSequence title = context.getText( R.string.menuItem_faq );

0 comments on commit 053a3ce

Please sign in to comment.