File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
app/src/main/java/fr/free/nrw/commons/category Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import static fr .free .nrw .commons .category .CategoryClientKt .CATEGORY_PREFIX ;
4
4
5
+ import android .content .ContentValues ;
5
6
import android .content .Context ;
6
7
import android .content .Intent ;
8
+ import android .location .LocationManager ;
7
9
import android .net .Uri ;
8
10
import android .os .Bundle ;
9
11
import android .view .Menu ;
@@ -65,8 +67,23 @@ protected void onCreate(Bundle savedInstanceState) {
65
67
getSupportActionBar ().setDisplayHomeAsUpEnabled (true );
66
68
setTabs ();
67
69
setPageTitle ();
70
+
71
+ if (null != savedInstanceState ) {
72
+ categoryName = savedInstanceState .getString ("categoryName" );
73
+ }
74
+ }
75
+
76
+ /**
77
+ * Save categoryName
78
+ * @param outState
79
+ */
80
+ @ Override
81
+ protected void onSaveInstanceState (Bundle outState ) {
82
+ super .onSaveInstanceState (outState );
83
+ outState .putString ("categoryName" , categoryName );
68
84
}
69
85
86
+
70
87
/**
71
88
* This activity contains 3 tabs and a viewpager. This method is used to set the titles of tab,
72
89
* Set the fragments according to the tab selected in the viewPager.
You can’t perform that action at this time.
0 commit comments