mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 07:13:00 +00:00 
			
		
		
		
	removed dot menu where its no longer needed
This commit is contained in:
		| @@ -551,8 +551,6 @@ public class MainActivity extends AppCompatActivity { | |||||||
|         if (!(fragment instanceof SearchFragment)) { |         if (!(fragment instanceof SearchFragment)) { | ||||||
|             findViewById(R.id.toolbar).findViewById(R.id.toolbar_search_container).setVisibility(View.GONE); |             findViewById(R.id.toolbar).findViewById(R.id.toolbar_search_container).setVisibility(View.GONE); | ||||||
|  |  | ||||||
|             MenuInflater inflater = getMenuInflater(); |  | ||||||
|             inflater.inflate(R.menu.main_menu, menu); |  | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         ActionBar actionBar = getSupportActionBar(); |         ActionBar actionBar = getSupportActionBar(); | ||||||
| @@ -574,14 +572,6 @@ public class MainActivity extends AppCompatActivity { | |||||||
|             case android.R.id.home: |             case android.R.id.home: | ||||||
|                 onHomeButtonPressed(); |                 onHomeButtonPressed(); | ||||||
|                 return true; |                 return true; | ||||||
|             case R.id.action_show_downloads: |  | ||||||
|                     return NavigationHelper.openDownloads(this); |  | ||||||
|             case R.id.action_history: |  | ||||||
|                     NavigationHelper.openStatisticFragment(getSupportFragmentManager()); |  | ||||||
|                     return true; |  | ||||||
|             case R.id.action_settings: |  | ||||||
|                     NavigationHelper.openSettings(this); |  | ||||||
|                     return true; |  | ||||||
|             default: |             default: | ||||||
|                 return super.onOptionsItemSelected(item); |                 return super.onOptionsItemSelected(item); | ||||||
|         } |         } | ||||||
|   | |||||||
| @@ -99,11 +99,6 @@ public class AboutActivity extends AppCompatActivity { | |||||||
|             case android.R.id.home: |             case android.R.id.home: | ||||||
|                 finish(); |                 finish(); | ||||||
|                 return true; |                 return true; | ||||||
|             case R.id.action_settings: |  | ||||||
|                 NavigationHelper.openSettings(this); |  | ||||||
|                 return true; |  | ||||||
|             case R.id.action_show_downloads: |  | ||||||
|                 return NavigationHelper.openDownloads(this); |  | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         return super.onOptionsItemSelected(item); |         return super.onOptionsItemSelected(item); | ||||||
|   | |||||||
| @@ -78,11 +78,7 @@ public class DownloadActivity extends AppCompatActivity { | |||||||
|                 onBackPressed(); |                 onBackPressed(); | ||||||
|                 return true; |                 return true; | ||||||
|             } |             } | ||||||
|             case R.id.action_settings: { |  | ||||||
|                 Intent intent = new Intent(this, SettingsActivity.class); |  | ||||||
|                 startActivity(intent); |  | ||||||
|                 return true; |  | ||||||
|             } |  | ||||||
|             default: |             default: | ||||||
|                 return super.onOptionsItemSelected(item); |                 return super.onOptionsItemSelected(item); | ||||||
|         } |         } | ||||||
|   | |||||||
| @@ -157,10 +157,6 @@ public abstract class ServicePlayerActivity extends AppCompatActivity | |||||||
|             case R.id.action_append_playlist: |             case R.id.action_append_playlist: | ||||||
|                 appendAllToPlaylist(); |                 appendAllToPlaylist(); | ||||||
|                 return true; |                 return true; | ||||||
|             case R.id.action_settings: |  | ||||||
|                 NavigationHelper.openSettings(this); |  | ||||||
|                 redraw = true; |  | ||||||
|                 return true; |  | ||||||
|             case R.id.action_system_audio: |             case R.id.action_system_audio: | ||||||
|                 startActivity(new Intent(Settings.ACTION_SOUND_SETTINGS)); |                 startActivity(new Intent(Settings.ACTION_SOUND_SETTINGS)); | ||||||
|                 return true; |                 return true; | ||||||
|   | |||||||
| @@ -27,8 +27,4 @@ | |||||||
|         android:title="@string/clear_finished_download" |         android:title="@string/clear_finished_download" | ||||||
|         app:showAsAction="ifRoom" /> |         app:showAsAction="ifRoom" /> | ||||||
|  |  | ||||||
|     <item android:id="@+id/action_settings" |  | ||||||
|         android:title="@string/settings" |  | ||||||
|         app:showAsAction="never" /> |  | ||||||
|  |  | ||||||
| </menu> | </menu> | ||||||
|   | |||||||
| @@ -3,14 +3,4 @@ | |||||||
|     xmlns:tools="http://schemas.android.com/tools" |     xmlns:tools="http://schemas.android.com/tools" | ||||||
|     tools:context="org.schabi.newpipe.about.AboutActivity"> |     tools:context="org.schabi.newpipe.about.AboutActivity"> | ||||||
|  |  | ||||||
|     <item android:id="@+id/action_show_downloads" |  | ||||||
|         android:orderInCategory="980" |  | ||||||
|         android:title="@string/downloads" |  | ||||||
|         app:showAsAction="never"/> |  | ||||||
|  |  | ||||||
|     <item android:id="@+id/action_settings" |  | ||||||
|         android:orderInCategory="990" |  | ||||||
|         android:title="@string/settings" |  | ||||||
|         app:showAsAction="never"/> |  | ||||||
|  |  | ||||||
| </menu> | </menu> | ||||||
|   | |||||||
| @@ -10,11 +10,6 @@ | |||||||
|         android:visible="true" |         android:visible="true" | ||||||
|         app:showAsAction="ifRoom"/> |         app:showAsAction="ifRoom"/> | ||||||
|  |  | ||||||
|     <item android:id="@+id/action_settings" |  | ||||||
|         android:orderInCategory="990" |  | ||||||
|         android:title="@string/settings" |  | ||||||
|         app:showAsAction="never"/> |  | ||||||
|  |  | ||||||
|     <item android:id="@+id/action_system_audio" |     <item android:id="@+id/action_system_audio" | ||||||
|         android:orderInCategory="996" |         android:orderInCategory="996" | ||||||
|         android:title="@string/play_queue_audio_settings" |         android:title="@string/play_queue_audio_settings" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Karol Kaminski
					Karol Kaminski