summaryrefslogtreecommitdiff
path: root/Source/Android
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2013-09-16 21:04:58 -0400
committerLioncash <mathew1800@gmail.com>2013-09-16 21:04:58 -0400
commitb4883e2ada6d452a69f13dec145475a894944a07 (patch)
tree7602b658141d496854a96b5ce08bbae554ea105f /Source/Android
parent38c7d3880086084db0549ad6381d3af0793defcb (diff)
[Android] Make the AboutFragment extend the ListFragment, since this is basically what this fragment acts as. Much more descriptive than simply extending Fragment.
Also made the list non-clickable, since it isn't supposed to be interacted with.
Diffstat (limited to 'Source/Android')
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/AboutFragment.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/AboutFragment.java b/Source/Android/src/org/dolphinemu/dolphinemu/AboutFragment.java
index a94a22a964..8b29e607d7 100644
--- a/Source/Android/src/org/dolphinemu/dolphinemu/AboutFragment.java
+++ b/Source/Android/src/org/dolphinemu/dolphinemu/AboutFragment.java
@@ -7,7 +7,7 @@
package org.dolphinemu.dolphinemu;
import android.app.Activity;
-import android.app.Fragment;
+import android.app.ListFragment;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
@@ -25,7 +25,7 @@ import org.dolphinemu.dolphinemu.settings.VideoSettingsFragment;
/**
* Represents the about screen.
*/
-public final class AboutFragment extends Fragment
+public final class AboutFragment extends ListFragment
{
private static Activity m_activity;
@@ -44,6 +44,7 @@ public final class AboutFragment extends Fragment
AboutFragmentAdapter adapter = new AboutFragmentAdapter(m_activity, R.layout.about_layout, Input);
mMainList.setAdapter(adapter);
+ mMainList.setEnabled(false); // Makes the list view non-clickable.
return mMainList;
}
@@ -108,7 +109,7 @@ public final class AboutFragment extends Fragment
View v = convertView;
if (v == null)
{
- LayoutInflater vi = (LayoutInflater)ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
+ LayoutInflater vi = (LayoutInflater) ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(id, parent, false);
}