Commit graph

290 commits

Author SHA1 Message Date
TwistedUmbrella
24b11375e3 Fix for controller navigation, Remove double close
The drawer is already closed by the selectBottomItem method, so there
is no reason to close it and then attempt to close it again.

The view type, whether GridView or TableLayout will not dynamically
alter the flow of focus from top to bottom. Starting at the top menu,
the next item down would be the main view according the internal
navigation. Instead, we want the next item to be the lower menu.

https://developer.android.com/training/keyboard-input/navigation.html
2015-08-06 16:19:54 -04:00
TwistedUmbrella
4ea9f0777c Revert "Prevent color recalibration"
This reverts commit fa1e86e38e87d0937b06d254085ad7efb288e292.

Once a proper method for handling colors has been determined, this code
will most likely be fixed by the original author.
2015-08-06 06:23:51 -04:00
TwistedUmbrella
d7446a6688 Support skipping the search when only changing view 2015-08-06 06:23:51 -04:00
TwistedUmbrella
3ccfc68a43 Backend for recent and homebrew list parameters 2015-08-06 06:23:51 -04:00
TwistedUmbrella
746870d1c5 Remove unnecessary step, Prevent color recalibration
The toolbar can be resized before it is visible, so an additional
startup method does not provide any real benefit. This also reduces the
number of variables in memory that reference the same item.

The HEX value for the desired darkness should be correctly configured
in the resource rather than attempting to account for code that alters
the color. This will only cause confusion.
2015-08-06 06:23:51 -04:00
TwistedUmbrella
31faf4346c Replace additional generic references with specific 2015-08-06 06:23:51 -04:00
TwistedUmbrella
fc2dc7185a Convert partial library into actual library project
This does away with the half in / half out library structure in favor
of a working external library structure.
2015-08-06 06:23:50 -04:00
TwistedUmbrella
eea9acdfb6 Convert game grid to GridView with scroll support
Remove the newly unnecessary column counter

Pass scrolling back to GridView to avoid custom

Add back the top margin to GridView

Fix padding adjustments to point to current views
2015-08-06 06:23:48 -04:00
Mahmood(Thunder07)
a6b2290e27 Merge branch 'master' of https://github.com/jpd002/Play- into nav3
Conflicts:
	Source/ui_android/java/com/virtualapplications/play/MainActivity.java
	build_android/res/drawable/gradient_grid.9.png
2015-08-05 06:38:22 +01:00
Mahmood(Thunder07)
8d49bf7fb1 Android Fix:Accidental Removal 2015-08-04 16:49:38 +01:00
Mahmood(Thunder07)
95020c9196 Android:simplifed getNavigationBarSize method 2015-08-03 21:45:52 +01:00
Mahmood(Thunder07)
69cba89cea Android:Removed exit from navbar, back doesn't open the drawer 2015-08-03 07:44:30 +01:00
TwistedUmbrella
fd45cd5ded Rebuild the view when switching orientation.
Loading the view should be fast enough to support this now.
2015-08-03 00:36:26 -04:00
Mahmood(Thunder07)
2493f9c752 Android:navbar translucency, gradient bg on runtime, correct padding with navbar (bottom/right) 2015-08-03 00:09:20 +01:00
TwistedUmbrella
16905afef1 Don't bypass loading data unless an overview and cover exist 2015-08-02 14:09:46 -04:00
TwistedUmbrella
07ec8addcb Android: Update nav drawer, add appcompat [fixed] 2015-08-02 12:51:45 +01:00
Mahmood(Thunder07)
85679e1bc7 Android: Update nav drawer, add appcompat 2015-08-02 12:51:01 +01:00
TwistedUmbrella
53bb1a4c75 Support exiting directly from the emulator
This allows returning to the source of an external intent
2015-07-31 04:04:55 -04:00
TwistedUmbrella
6df3945cde Add missing values to generate a "full" entry 2015-07-31 04:04:55 -04:00
TwistedUmbrella
9b9ba8d246 Make the database subclass an actual subclass 2015-07-31 04:04:55 -04:00
TwistedUmbrella
4a79b868fc Save GameID entries for faster loading 2015-07-31 04:04:54 -04:00
TwistedUmbrella
a49f6d7741 Support launching game from external intent 2015-07-31 04:04:54 -04:00
jpd002
b04a167c8a Merge pull request #266 from Thunder07/ui_android
Android:Moved UI operation until after creating.
2015-07-31 04:03:20 -04:00
Mahmood(Thunder07)
574e4f399b Android:Updated DB with the initial set of TheGamesDB IDs 2015-07-30 17:13:20 +01:00
Mahmood(Thunder07)
253e612b35 Android:Moved UI operation until after creating. 2015-07-30 16:24:16 +01:00
TwistedUmbrella
ba40d3499f Update imports, remove excess whitespace 2015-07-30 00:50:51 -04:00
TwistedUmbrella
c323768257 Don't block UI when building database 2015-07-29 20:30:06 -04:00
TwistedUmbrella
44f5b3bd53 Copy packaged database through SQLite 2015-07-29 19:46:41 -04:00
TwistedUmbrella
6e263dcaf1 Prevent a crash when recreating tables
This can occur if the table was copied from assets, but has not been
labeled as generated by the application. The table will attempt to
recreate itself and yield an error that it exists.
2015-07-28 05:45:14 -04:00
TwistedUmbrella
ddb6fb7a2d Check for TheGamesDB url or use full url 2015-07-28 05:45:14 -04:00
TwistedUmbrella
c461ee0286 Catch a null pointer caused by offline loading 2015-07-28 05:45:14 -04:00
TwistedUmbrella
fa475e8b9f Support a custom image for disks without serial
This will be assigned via the filename, which will be linked to the
Disk field of the image database.
2015-07-28 05:45:14 -04:00
Jean-Philip Desjardins
7837f99a40 Don't return any game info if serial is null. 2015-07-27 01:32:19 -04:00
TwistedUmbrella
79bad2b2af Expand database, Improve regional serial search 2015-07-26 22:51:09 -04:00
TwistedUmbrella
141aa4d856 Fix database call for multiple parameters 2015-07-26 22:51:08 -04:00
TwistedUmbrella
8a43a07e7f Support using elastic search via GetGamesList 2015-07-26 22:51:08 -04:00
TwistedUmbrella
eb828ce455 Support DB upgrade, Image table, Fuzzy serial
DB upgrade can now be performed through the standard upgrade method
automatically.
An image table has been added to support future customization of covers
through a cross-matched table by serial, or filename. Game ID was not
used, as this is a matched value not obtained from the physical image.
Serial numbers are now matched by the literal value, then by the
possible regional versions.
2015-07-26 22:51:08 -04:00
TwistedUmbrella
82a484fd7d Verify the cursor before attempting read 2015-07-26 22:51:08 -04:00
TwistedUmbrella
af4274d3d3 Reference the derived string, not the element 2015-07-26 22:51:07 -04:00
TwistedUmbrella
fa7a86ffa8 Support a cover null check that prevents resync
This will avoid checking for a cover that doesn’t exist every single
time the game info for that disk is loaded.
2015-07-26 22:51:07 -04:00
TwistedUmbrella
416417fcbd Avoid unnecessary loops, Check for empty string
It is possible that the database value will return an empty string
rather than a null value. This is simply precaution.

Conflicts:
	build_android/AndroidManifest.xml
2015-07-26 22:51:07 -04:00
TwistedUmbrella
5ba55fb89b Organize classes, Database support, Remove dupes
Conflicts:
Source/ui_android/java/com/virtualapplications/play/MainActivity.java
Source/ui_android/java/com/virtualapplications/play/SetupDB.java
Source/ui_android/java/com/virtualapplications/play/TheGameDB.java
Source/ui_android/java/com/virtualapplications/play/getGameDetails.java

Load internal database, Fill from internet APIs

If a cover image and description are not in the database, attempt to
retrieve them from the API by ID. If an ID is not present, generate
temporary values based on search. These values are saved according to
the API ID, but not associated with the file name in storage. This
allows these entries to be applied to a game retrieved by ID at a later
time.

Combine long click calls into generic function

Fix long click function to return a value

Now that this is only the listener, it is no longer self-contained

Add a settings option to clear the cover cache

Log serial in relation to filename for reference

This may prove useful to obtain missing serial numbers.

Verify the existence of an image before loading

An image entry has been added to avoid the StackOverflow generated by
simply looping through the possible suffix values. The database has
been configured to pick up these image entries during the course of
regular checks.
Most images are -1, but a few have been found with alternate endings,
depending on revisions.

External database versioning for assets file

Using database version would cause the database to be rebuilt
internally, which would not copy the assets file.
The last modified time only applies to the written file and could not
be compared to the assets file, which would result in unnecessary
writes for every app update.
This method allow the value to be hard-coded in the app to reflect only
when the assets database is updated and avoid the restrictions of
runtime options.

Conflicts:
Source/ui_android/java/com/virtualapplications/play/getGameDetails.java

Conflicts:
Source/ui_android/java/com/virtualapplications/play/TheGamesDB.java
build_android/assets/games.db

Conflicts:
	Source/ui_android/java/com/virtualapplications/play/TheGamesDB.java
	build_android/assets/games.db

Reconnect getSerial call after rebase
2015-07-26 22:51:07 -04:00
Jean-Philip Desjardins
e267726785 Fixed Android build. 2015-07-24 02:31:53 -04:00
jpd002
8ead906d2e Merge pull request #254 from Thunder07/WIP
List filtering, Cover Saving, Serial ID identification, On Demand Description
2015-07-24 02:30:22 -04:00
Jean-Philip Desjardins
cf03947322 Added JNI wrapper for GetDiskId function. 2015-07-23 23:34:37 -04:00
TwistedUmbrella
ca7f48dfe3 Cross-check possible ROMs for serial numbers
This will shorten the list of available games to just those that both
fit the extension requirements and have a serial number. While it may
not cover every game, there is an extremely high probability at least
one game in a folder has a serial. This assumes all games are obtained
legally.

Conflicts:
	Source/ui_android/java/com/virtualapplications/play/GameInfo.java
2015-07-24 01:25:22 +01:00
Mahmood(Thunder07)
8a5ed042d3 List filtering, Cover Saving, Serial ID identification, On Demand Description 2015-07-23 23:31:23 +01:00
TwistedUmbrella
c4613a7385 Fix titles and alignment to match current state 2015-07-19 01:48:12 -04:00
TwistedUmbrella
8656dcb4af Lock orientation during file selection, Menu cleanup 2015-07-19 01:05:16 -04:00
TwistedUmbrella
76441607ab Check for null game and catch all exceptions
The application should not crash when anything goes wrong with
retrieving remote entries. It should just return file info.
2015-07-19 01:05:12 -04:00