mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Add base codes for test layered fragment activity
This commit is contained in:
parent
5575d42df2
commit
67af6d8ae9
6 changed files with 29 additions and 0 deletions
|
|
@ -146,6 +146,12 @@
|
|||
android:name=".nearby.NearbyTestFragmentActivity"
|
||||
android:label="@string/title_activity_nearby_test_fragment" />
|
||||
|
||||
<activity
|
||||
android:name=".nearby.NearbyTestFragmentLayersActivity"
|
||||
android:label="@string/title_activity_nearby_test_fragment_layers" />
|
||||
|
||||
|
||||
|
||||
|
||||
<service android:name=".upload.UploadService" />
|
||||
<service
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import fr.free.nrw.commons.explore.SearchActivity;
|
|||
import fr.free.nrw.commons.explore.categories.ExploreActivity;
|
||||
import fr.free.nrw.commons.nearby.NearbyTestActivity;
|
||||
import fr.free.nrw.commons.nearby.NearbyTestFragmentActivity;
|
||||
import fr.free.nrw.commons.nearby.NearbyTestFragmentLayersActivity;
|
||||
import fr.free.nrw.commons.notification.NotificationActivity;
|
||||
import fr.free.nrw.commons.review.ReviewActivity;
|
||||
import fr.free.nrw.commons.settings.SettingsActivity;
|
||||
|
|
@ -75,4 +76,7 @@ public abstract class ActivityBuilderModule {
|
|||
|
||||
@ContributesAndroidInjector
|
||||
abstract NearbyTestFragmentActivity bindNearbyTestFragment();
|
||||
|
||||
@ContributesAndroidInjector
|
||||
abstract NearbyTestFragmentLayersActivity bindNearbyTestFragmentLayersActivity();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
package fr.free.nrw.commons.nearby;
|
||||
|
||||
import fr.free.nrw.commons.theme.NavigationBaseActivity;
|
||||
|
||||
public class NearbyTestFragmentLayersActivity extends NavigationBaseActivity {
|
||||
}
|
||||
|
|
@ -40,6 +40,7 @@ import fr.free.nrw.commons.kvstore.JsonKvStore;
|
|||
import fr.free.nrw.commons.logging.CommonsLogSender;
|
||||
import fr.free.nrw.commons.nearby.NearbyTestActivity;
|
||||
import fr.free.nrw.commons.nearby.NearbyTestFragmentActivity;
|
||||
import fr.free.nrw.commons.nearby.NearbyTestFragmentLayersActivity;
|
||||
import fr.free.nrw.commons.review.ReviewActivity;
|
||||
import fr.free.nrw.commons.settings.SettingsActivity;
|
||||
import timber.log.Timber;
|
||||
|
|
@ -188,6 +189,11 @@ public abstract class NavigationBaseActivity extends BaseActivity
|
|||
startActivityWithFlags(this, NearbyTestFragmentActivity.class, Intent.FLAG_ACTIVITY_REORDER_TO_FRONT,
|
||||
Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
||||
return true;
|
||||
case R.id.action_nearby_test_fragment_layers:
|
||||
drawerLayout.closeDrawer(navigationView);
|
||||
startActivityWithFlags(this, NearbyTestFragmentLayersActivity.class, Intent.FLAG_ACTIVITY_REORDER_TO_FRONT,
|
||||
Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
||||
return true;
|
||||
case R.id.action_feedback:
|
||||
drawerLayout.closeDrawer(navigationView);
|
||||
|
||||
|
|
|
|||
|
|
@ -60,6 +60,11 @@
|
|||
android:icon="@drawable/ic_help_black_24dp"
|
||||
android:title="@string/navigation_item_nearby_test_fragment" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_nearby_test_fragment_layers"
|
||||
android:icon="@drawable/ic_help_black_24dp"
|
||||
android:title="@string/navigation_item_nearby_test_fragment_layers" />
|
||||
|
||||
</group>
|
||||
|
||||
<group android:id="@+id/drawer_logout">
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@
|
|||
<string name="title_activity_review">Peer Review</string>
|
||||
<string name="title_activity_nearby_test_activity">Nearby Test Activity</string>
|
||||
<string name="title_activity_nearby_test_fragment">Nearby Test Fragment</string>
|
||||
<string name="title_activity_nearby_test_fragment_layers">Nearby Test Fragment Layers</string>
|
||||
<string name="menu_about">About</string>
|
||||
<string name="about_license">The Wikimedia Commons app is an open-source app created and maintained by grantees and volunteers of the Wikimedia community. The Wikimedia Foundation is not involved in the creation, development, or maintenance of the app. </string>
|
||||
<string name="trademarked_name" translatable="false">Wikimedia Commons</string>
|
||||
|
|
@ -237,6 +238,7 @@
|
|||
<string name="navigation_item_review">Review</string>
|
||||
<string name="navigation_item_nearby_test_activity">Nearby Test Activity</string>
|
||||
<string name="navigation_item_nearby_test_fragment">Nearby Test Fragment</string>
|
||||
<string name="navigation_item_nearby_test_fragment_layers">Nearby Test Fragment Layers</string>
|
||||
<string name="nearby_needs_permissions">Nearby places cannot be displayed without location permissions</string>
|
||||
<string name="no_description_found">no description found</string>
|
||||
<string name="nearby_info_menu_commons_article">Commons file page</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue