Skip to content

Commit

Permalink
Went back to using the UI thread for resurfacing fragments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmg1138 committed Dec 29, 2016
1 parent 820a206 commit 445c3b2
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static void resurfaceFragmentInBackStack(final FragmentManager fm,
final String desiredTagCombo) {

// Get a handler that can be used to post to the main thread
//Handler handler = new Handler(Looper.getMainLooper());
Handler handler = new Handler(Looper.getMainLooper());
Runnable runnable = new Runnable() {
@Override
public void run() {
Expand Down Expand Up @@ -199,9 +199,7 @@ public void run() {
}
}
};
//handler.post(runnable);
Thread thread = new Thread(runnable);
thread.start();
handler.post(runnable);

}

Expand Down

0 comments on commit 445c3b2

Please sign in to comment.