]> Pileus Git - ~andy/freeotp/blobdiff - src/org/fedorahosted/freeotp/MainActivity.java
Migrate About dialog to use a DialogFragment
[~andy/freeotp] / src / org / fedorahosted / freeotp / MainActivity.java
index 5a2f5a7289e6d95c3a45b476d179a177054f698f..6ffe093c583a44160e0cf653d2d4b3560a9efb9d 100644 (file)
@@ -176,7 +176,8 @@ public class MainActivity extends Activity {
                menu.findItem(R.id.action_about).setOnMenuItemClickListener(new OnMenuItemClickListener() {
                        @Override
                        public boolean onMenuItemClick(MenuItem item) {
-                               new AboutDialog(MainActivity.this).show();
+                               new AboutDialogFragment().show(getFragmentManager(),
+                                               AboutDialogFragment.FRAGMENT_TAG);
                                return true;
                        }
                });