Renaming 'My Apps' to 'Updates'.
This doesn't change the `MyAppsAdapter` and friends, because they will be gutted in a subsequent commit.
This commit is contained in:
		
							parent
							
								
									d4716e6387
								
							
						
					
					
						commit
						7659c3a33f
					
				| @ -35,7 +35,7 @@ import org.fdroid.fdroid.views.swap.SwapWorkflowActivity; | |||||||
|  *  + Whats new |  *  + Whats new | ||||||
|  *  + Categories list |  *  + Categories list | ||||||
|  *  + App swap |  *  + App swap | ||||||
|  *  + My apps |  *  + Updates | ||||||
|  *  + Settings |  *  + Settings | ||||||
|  * |  * | ||||||
|  *  Users navigate between items by using the bottom navigation bar, or by swiping left and right. |  *  Users navigate between items by using the bottom navigation bar, or by swiping left and right. | ||||||
| @ -46,7 +46,7 @@ public class MainActivity extends AppCompatActivity implements BottomNavigationV | |||||||
| 
 | 
 | ||||||
|     private static final String TAG = "MainActivity"; |     private static final String TAG = "MainActivity"; | ||||||
| 
 | 
 | ||||||
|     public static final String EXTRA_VIEW_MY_APPS = "org.fdroid.fdroid.views.main.MainActivity.VIEW_MY_APPS"; |     public static final String EXTRA_VIEW_UPDATES = "org.fdroid.fdroid.views.main.MainActivity.VIEW_UPDATES"; | ||||||
| 
 | 
 | ||||||
|     private static final String ADD_REPO_INTENT_HANDLED = "addRepoIntentHandled"; |     private static final String ADD_REPO_INTENT_HANDLED = "addRepoIntentHandled"; | ||||||
| 
 | 
 | ||||||
| @ -99,9 +99,9 @@ public class MainActivity extends AppCompatActivity implements BottomNavigationV | |||||||
| 
 | 
 | ||||||
|         FDroidApp.checkStartTor(this); |         FDroidApp.checkStartTor(this); | ||||||
| 
 | 
 | ||||||
|         if (getIntent().hasExtra(EXTRA_VIEW_MY_APPS)) { |         if (getIntent().hasExtra(EXTRA_VIEW_UPDATES)) { | ||||||
|             getIntent().removeExtra(EXTRA_VIEW_MY_APPS); |             getIntent().removeExtra(EXTRA_VIEW_UPDATES); | ||||||
|             pager.scrollToPosition(adapter.adapterPositionFromItemId(R.id.my_apps)); |             pager.scrollToPosition(adapter.adapterPositionFromItemId(R.id.updates)); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         // AppDetails  2 and RepoDetailsActivity set different NFC actions, so reset here |         // AppDetails  2 and RepoDetailsActivity set different NFC actions, so reset here | ||||||
|  | |||||||
| @ -13,7 +13,7 @@ import org.fdroid.fdroid.R; | |||||||
|  *  + Whats new |  *  + Whats new | ||||||
|  *  + Categories |  *  + Categories | ||||||
|  *  + Nearby |  *  + Nearby | ||||||
|  *  + My Apps |  *  + Updates | ||||||
|  *  + Settings |  *  + Settings | ||||||
|  * |  * | ||||||
|  *  It is responsible for understanding the relationship between each main view that is reachable |  *  It is responsible for understanding the relationship between each main view that is reachable | ||||||
| @ -35,7 +35,7 @@ class MainViewAdapter extends RecyclerView.Adapter<MainViewController> { | |||||||
|         positionToId.put(0, R.id.whats_new); |         positionToId.put(0, R.id.whats_new); | ||||||
|         positionToId.put(1, R.id.categories); |         positionToId.put(1, R.id.categories); | ||||||
|         positionToId.put(2, R.id.nearby); |         positionToId.put(2, R.id.nearby); | ||||||
|         positionToId.put(3, R.id.my_apps); |         positionToId.put(3, R.id.updates); | ||||||
|         positionToId.put(4, R.id.settings); |         positionToId.put(4, R.id.settings); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| @ -52,8 +52,8 @@ class MainViewAdapter extends RecyclerView.Adapter<MainViewController> { | |||||||
|             case R.id.nearby: |             case R.id.nearby: | ||||||
|                 holder.bindSwapView(); |                 holder.bindSwapView(); | ||||||
|                 break; |                 break; | ||||||
|             case R.id.my_apps: |             case R.id.updates: | ||||||
|                 holder.bindMyApps(); |                 holder.bindUpdates(); | ||||||
|                 break; |                 break; | ||||||
|             case R.id.settings: |             case R.id.settings: | ||||||
|                 holder.bindSettingsView(); |                 holder.bindSettingsView(); | ||||||
|  | |||||||
| @ -40,7 +40,7 @@ class MainViewController extends RecyclerView.ViewHolder { | |||||||
|     /** |     /** | ||||||
|      * @see MyAppsViewBinder |      * @see MyAppsViewBinder | ||||||
|      */ |      */ | ||||||
|     public void bindMyApps() { |     public void bindUpdates() { | ||||||
|         new MyAppsViewBinder(activity, frame); |         new MyAppsViewBinder(activity, frame); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -17,10 +17,10 @@ | |||||||
|         app:showAsAction="ifRoom|withText" |         app:showAsAction="ifRoom|withText" | ||||||
|         android:id="@+id/nearby" /> |         android:id="@+id/nearby" /> | ||||||
|     <item |     <item | ||||||
|         android:title="@string/preference_category__my_apps" |         android:title="@string/updates" | ||||||
|         android:icon="@drawable/ic_updates" |         android:icon="@drawable/ic_updates" | ||||||
|         app:showAsAction="ifRoom|withText" |         app:showAsAction="ifRoom|withText" | ||||||
|         android:id="@+id/my_apps" /> |         android:id="@+id/updates" /> | ||||||
|     <item |     <item | ||||||
|         android:title="@string/menu_settings" |         android:title="@string/menu_settings" | ||||||
|         android:icon="@drawable/ic_settings" |         android:icon="@drawable/ic_settings" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Peter Serwylo
						Peter Serwylo