Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Android] Start making it so the side pane is visible on all activiti…
…es by converting them to fragments. Only Browse Folder and Gamepad Config remain. Fix a issue that Lioncash introduced where no games would show up in the folder browser or the game list.
- Loading branch information
1 parent
fbd6732
commit 023922c
Showing
8 changed files
with
363 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
Source/Android/src/org/dolphinemu/dolphinemu/AboutActivity.java
This file was deleted.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
Source/Android/src/org/dolphinemu/dolphinemu/AboutFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| package org.dolphinemu.dolphinemu; | ||
|
|
||
| import android.app.Activity; | ||
| import android.app.Fragment; | ||
| import android.os.Bundle; | ||
| import android.view.LayoutInflater; | ||
| import android.view.View; | ||
| import android.view.ViewGroup; | ||
| import android.widget.ListView; | ||
|
|
||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
|
|
||
| /** | ||
| * Copyright 2013 Dolphin Emulator Project | ||
| * Licensed under GPLv2 | ||
| * Refer to the license.txt file included. | ||
| */ | ||
| public class AboutFragment extends Fragment { | ||
| private static Activity m_activity; | ||
|
|
||
| private ListView mMainList; | ||
|
|
||
| private FolderBrowserAdapter adapter; | ||
| private int configPosition = 0; | ||
| boolean Configuring = false; | ||
| boolean firstEvent = true; | ||
|
|
||
| public AboutFragment() { | ||
| // Empty constructor required for fragment subclasses | ||
| } | ||
|
|
||
| @Override | ||
| public View onCreateView(LayoutInflater inflater, ViewGroup container, | ||
| Bundle savedInstanceState) { | ||
| View rootView = inflater.inflate(R.layout.gamelist_listview, container, false); | ||
| mMainList = (ListView) rootView.findViewById(R.id.gamelist); | ||
|
|
||
| List<GameListItem> Input = new ArrayList<GameListItem>(); | ||
| int a = 0; | ||
|
|
||
| Input.add(a++, new GameListItem(m_activity, "Build Revision", NativeLibrary.GetVersionString(), "", true)); | ||
| adapter = new FolderBrowserAdapter(m_activity, R.layout.folderbrowser, Input); | ||
| mMainList.setAdapter(adapter); | ||
|
|
||
| return mMainList; | ||
| } | ||
| @Override | ||
| public void onAttach(Activity activity) { | ||
| super.onAttach(activity); | ||
|
|
||
| // This makes sure that the container activity has implemented | ||
| // the callback interface. If not, it throws an exception | ||
| try { | ||
| m_activity = activity; | ||
| } catch (ClassCastException e) { | ||
| throw new ClassCastException(activity.toString() | ||
| + " must implement OnGameListZeroListener"); | ||
| } | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.