Added functionality to start native render

This commit is contained in:
Denis_Bars 2014-09-29 16:07:21 +03:00
parent d1e07eeaab
commit f846093a56
3 changed files with 17 additions and 1 deletions

View file

@ -9,6 +9,8 @@
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
-->
<string name="test_native_render">Test native render</string>
<string name="test_native_render_msg">Starts activity with native render</string>
<string name="text_size_descr">Set the text size on the map.</string>
<string name="text_size">Text size</string>
<string name="traffic_warning_speed_limit">Speed limit</string>

View file

@ -83,7 +83,7 @@ public class OsmAndAppCustomization {
public Class<? extends Activity> getDownloadActivity() {
//return DownloadActivity.class;
return GLActivity.class;
return DownloadActivity.class;
}
// Download screen

View file

@ -6,6 +6,7 @@ import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import net.osmand.core.android.GLActivity;
import net.osmand.plus.ApplicationMode;
import net.osmand.plus.R;
import net.osmand.plus.activities.SettingsBaseActivity;
@ -53,6 +54,19 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
}
});
cat.addPreference(pref);
pref = new Preference(this);
pref.setTitle(R.string.test_native_render);
pref.setSummary(R.string.test_native_render_msg);
pref.setKey("test_native_render");
pref.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference preference) {
startActivity(new Intent(SettingsDevelopmentActivity.this, GLActivity.class));
return true;
}
});
cat.addPreference(pref);
pref = new Preference(this);
pref.setTitle(R.string.app_modes_choose);