mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	Merge pull request #557 from mauriciocolli/fix-settings-rotation
Fix settings on screen rotation
This commit is contained in:
		| @@ -53,15 +53,17 @@ public class SettingsActivity extends AppCompatActivity { | ||||
|             actionBar.setDisplayShowTitleEnabled(true); | ||||
|         } | ||||
|  | ||||
|         getFragmentManager().beginTransaction() | ||||
|                 .replace(R.id.fragment_holder,  new SettingsFragment()) | ||||
|                 .commit(); | ||||
|         if (savedInstanceBundle == null) { | ||||
|             getFragmentManager().beginTransaction() | ||||
|                     .replace(R.id.fragment_holder, new SettingsFragment()) | ||||
|                     .commit(); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public boolean onOptionsItemSelected(MenuItem item) { | ||||
|         int id = item.getItemId(); | ||||
|         if(id == android.R.id.home) { | ||||
|         if (id == android.R.id.home) { | ||||
|             finish(); | ||||
|         } | ||||
|         return true; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Mauricio Colli
					Mauricio Colli