Improve the Github API plugin accessibility
This commit is contained in:
parent
71c2cb4512
commit
ab45419ba7
|
@ -91,6 +91,7 @@
|
|||
|
||||
<string name="about_text">reicast is a multi-platform Dreamcast emulator.</string>
|
||||
<string name="revision_text">Version: %1$s [%2$s]</string>
|
||||
<string name="git_broken">Github API not available</string>
|
||||
|
||||
<string-array name="controllers">
|
||||
<item>Controller A</item>
|
||||
|
|
|
@ -36,12 +36,12 @@ import android.widget.SlidingDrawer;
|
|||
import android.widget.SlidingDrawer.OnDrawerOpenListener;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.reicast.emulator.config.Config;
|
||||
import com.reicast.emulator.debug.GitAdapter;
|
||||
|
||||
public class AboutFragment extends Fragment {
|
||||
|
||||
String buildId = "";
|
||||
String git_api = "https://api.github.com/repos/reicast/reicast-emulator/commits";
|
||||
SlidingDrawer slidingGithub;
|
||||
private ListView list;
|
||||
private GitAdapter adapter;
|
||||
|
@ -98,7 +98,7 @@ public class AboutFragment extends Fragment {
|
|||
slidingGithub.setOnDrawerOpenListener(new OnDrawerOpenListener() {
|
||||
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
|
||||
public void onDrawerOpened() {
|
||||
new retrieveGitTask().execute(git_api);
|
||||
new retrieveGitTask().execute(Config.git_api);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -224,6 +224,7 @@ public class AboutFragment extends Fragment {
|
|||
list.setOnItemClickListener(new OnItemClickListener() {
|
||||
public void onItemClick(AdapterView<?> parent, View view,
|
||||
int position, long id) {
|
||||
slidingGithub.open();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -61,7 +61,8 @@ public class Config {
|
|||
public static boolean usereios = false;
|
||||
public static boolean nativeact = false;
|
||||
public static int vibrationDuration = 20;
|
||||
|
||||
|
||||
public static String git_api = "https://api.github.com/repos/reicast/reicast-emulator/commits";
|
||||
public static String git_issues = "https://github.com/reicast/reicast-emulator/issues/";
|
||||
public static String log_url = "http://loungekatt.no-ip.biz:3194/ReicastBot/report/submit.php";
|
||||
public static String report_url = "http://loungekatt.no-ip.biz:3194/ReicastBot/report/logs/";
|
||||
|
|
Loading…
Reference in New Issue