Commits

Matjaž Črnko  committed f9ae8b3

Possible crash fix on concurrent refresh press (from both menus)

  • Participants
  • Parent commits f4b56d9
  • Tags 0.2.1

Comments (0)

Files changed (1)

File src/com/jinzo/mporaba/Mporaba.java

 	    	return true;
 	    case R.id.refresh:   
 	    	MainData fragment = (MainData) getSupportFragmentManager().findFragmentById(R.id.listFragment);
-	    	fragment.refreshFromNET();
-	        return true;
+	    	if (!this.taskRunning) {
+	    		fragment.refreshFromNET();
+	    	}
+	    	return true;
 	    case R.id.menu_preferences:
 	    case R.id.preferences:
             Intent settingsActivity = new Intent(getBaseContext(), Preferences.class);