Skip to content

Commit

Permalink
First prototype of first time launch improvement hack completed
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrupczak3 committed Jun 15, 2019
1 parent 12bf04d commit a55864b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ android {
signingConfigs {
config {
keyAlias 'key0'
keyPassword ''
keyPassword 'Ca$hm0n3y000'
storeFile file('C:/Users/matth/Dropbox/Keystore/mkrupczak3.jks')
storePassword ''
storePassword 'Ca$hm0n3y000'
}
}

Expand Down
15 changes: 15 additions & 0 deletions doom/src/main/java/net/nullsum/freedoom/LaunchFragmentGZdoom.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
Expand Down Expand Up @@ -81,6 +84,18 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
// Info of hack
// https://stackoverflow.com/questions/15262747/refresh-or-force-redraw-the-fragment

// simple refresh of wad list
listAdapter.notifyDataSetChanged();

// // Extremely aggressive redraw of wad list
// listview.invalidateViews();

// Aggressive hack which forces the entire fragment to redraw
FragmentTransaction tr = getFragmentManager().beginTransaction();
tr.replace(((ViewGroup)getView().getParent()).getId(), this);
tr.commit();

// END HACK
}


Expand Down

0 comments on commit a55864b

Please sign in to comment.