diff --git a/AndroidManifest.xml b/AndroidManifest.xml index c74ddf472d..2eb58acc42 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -172,11 +172,7 @@ android:label="@string/AndroidManifest__verify_identity" android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/> - - - diff --git a/res/drawable-hdpi/contacts_identities_dark.png b/res/drawable-hdpi/contacts_identities_dark.png deleted file mode 100644 index 158a24520d..0000000000 Binary files a/res/drawable-hdpi/contacts_identities_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/contacts_identities_light.png b/res/drawable-hdpi/contacts_identities_light.png deleted file mode 100644 index ee6b125da0..0000000000 Binary files a/res/drawable-hdpi/contacts_identities_light.png and /dev/null differ diff --git a/res/drawable-mdpi/contacts_identities_dark.png b/res/drawable-mdpi/contacts_identities_dark.png deleted file mode 100644 index b14d071961..0000000000 Binary files a/res/drawable-mdpi/contacts_identities_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/contacts_identities_light.png b/res/drawable-mdpi/contacts_identities_light.png deleted file mode 100644 index 67f74fb438..0000000000 Binary files a/res/drawable-mdpi/contacts_identities_light.png and /dev/null differ diff --git a/res/drawable-xhdpi/contacts_identities_dark.png b/res/drawable-xhdpi/contacts_identities_dark.png deleted file mode 100644 index 84cfac9cd0..0000000000 Binary files a/res/drawable-xhdpi/contacts_identities_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/contacts_identities_light.png b/res/drawable-xhdpi/contacts_identities_light.png deleted file mode 100644 index 962049ba44..0000000000 Binary files a/res/drawable-xhdpi/contacts_identities_light.png and /dev/null differ diff --git a/res/layout/review_identities.xml b/res/layout/review_identities.xml deleted file mode 100644 index 26b43e80d9..0000000000 --- a/res/layout/review_identities.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - diff --git a/res/layout/review_identities_fragment.xml b/res/layout/review_identities_fragment.xml deleted file mode 100644 index 3bb2346703..0000000000 --- a/res/layout/review_identities_fragment.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 9285df884d..6e2c2e57fa 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -128,24 +128,20 @@ @string/arrays__import_export @string/arrays__my_identity_key - @string/arrays__contact_keys import_export my_identity_key - contact_identity_keys @drawable/import_export_light @drawable/my_identity_light - @drawable/contacts_identities_light @drawable/import_export_dark @drawable/my_identity_dark - @drawable/contacts_identities_dark diff --git a/res/values/strings.xml b/res/values/strings.xml index b09d2b791c..61fc5bd2ed 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -670,7 +670,6 @@ Import / Export My identity key - Contact keys General diff --git a/src/org/thoughtcrime/securesms/ConversationListActivity.java b/src/org/thoughtcrime/securesms/ConversationListActivity.java index fdb97d74e8..cf95f92efc 100644 --- a/src/org/thoughtcrime/securesms/ConversationListActivity.java +++ b/src/org/thoughtcrime/securesms/ConversationListActivity.java @@ -128,9 +128,6 @@ public class ConversationListActivity extends PassphraseRequiredSherlockFragment } else if (selected.equals("my_identity_key")) { intent = new Intent(this, ViewLocalIdentityActivity.class); intent.putExtra("master_secret", masterSecret); - } else if (selected.equals("contact_identity_keys")) { - intent = new Intent(this, ReviewIdentitiesActivity.class); - intent.putExtra("master_secret", masterSecret); } else { return; } diff --git a/src/org/thoughtcrime/securesms/ReviewIdentitiesActivity.java b/src/org/thoughtcrime/securesms/ReviewIdentitiesActivity.java deleted file mode 100644 index 4f3cda5ad5..0000000000 --- a/src/org/thoughtcrime/securesms/ReviewIdentitiesActivity.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Copyright (C) 2011 Whisper Systems - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.thoughtcrime.securesms; - -import android.os.Bundle; - -import com.actionbarsherlock.app.SherlockFragmentActivity; -import com.actionbarsherlock.view.MenuItem; - -import org.thoughtcrime.securesms.util.DynamicLanguage; -import org.thoughtcrime.securesms.util.DynamicTheme; - -public class ReviewIdentitiesActivity extends SherlockFragmentActivity { - - private final DynamicTheme dynamicTheme = new DynamicTheme(); - private final DynamicLanguage dynamicLanguage = new DynamicLanguage(); - - @Override - public void onCreate(Bundle bundle) { - dynamicTheme.onCreate(this); - dynamicLanguage.onCreate(this); - super.onCreate(bundle); - setContentView(R.layout.review_identities); - getSupportActionBar().setDisplayHomeAsUpEnabled(true); - } - - @Override - public void onResume() { - super.onResume(); - dynamicTheme.onResume(this); - dynamicLanguage.onResume(this); - getSupportActionBar().setTitle(R.string.AndroidManifest__manage_identity_keys); - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - switch (item.getItemId()) { - case android.R.id.home: finish(); return true; - } - - return false; - } -} \ No newline at end of file diff --git a/src/org/thoughtcrime/securesms/ReviewIdentitiesFragment.java b/src/org/thoughtcrime/securesms/ReviewIdentitiesFragment.java deleted file mode 100644 index 73aae03e27..0000000000 --- a/src/org/thoughtcrime/securesms/ReviewIdentitiesFragment.java +++ /dev/null @@ -1,92 +0,0 @@ -package org.thoughtcrime.securesms; - -import android.content.Context; -import android.content.Intent; -import android.database.Cursor; -import android.os.Bundle; -import android.support.v4.app.LoaderManager; -import android.support.v4.content.Loader; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.CursorAdapter; -import android.widget.ListView; - -import com.actionbarsherlock.app.SherlockListFragment; -import org.whispersystems.textsecure.crypto.MasterSecret; -import org.thoughtcrime.securesms.database.DatabaseFactory; -import org.thoughtcrime.securesms.database.IdentityDatabase; -import org.thoughtcrime.securesms.database.loaders.IdentityLoader; - -public class ReviewIdentitiesFragment extends SherlockListFragment - implements LoaderManager.LoaderCallbacks -{ - private MasterSecret masterSecret; - - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle bundle) { - return inflater.inflate(R.layout.review_identities_fragment, container, false); - } - - @Override - public void onActivityCreated(Bundle bundle) { - super.onActivityCreated(bundle); - this.masterSecret = getSherlockActivity().getIntent().getParcelableExtra("master_secret"); - - initializeListAdapter(); - getLoaderManager().initLoader(0, null, this); - } - - @Override - public void onListItemClick(ListView listView, View view, int position, long id) { - Intent viewIntent = new Intent(getActivity(), ViewIdentityActivity.class); - viewIntent.putExtra("identity_key", ((IdentityKeyView)view).getIdentityKey()); - viewIntent.putExtra("title", ((IdentityKeyView)view).getRecipient().toShortString() + " " + - getString(R.string.ViewIdentityActivity_identity_fingerprint)); - startActivity(viewIntent); - } - - private void initializeListAdapter() { - this.setListAdapter(new IdentitiesListAdapter(getActivity(), null, masterSecret)); - getLoaderManager().restartLoader(0, null, this); - } - - @Override - public Loader onCreateLoader(int id, Bundle args) { - return new IdentityLoader(getActivity()); - } - - @Override - public void onLoadFinished(Loader loader, Cursor cursor) { - ((CursorAdapter)getListAdapter()).changeCursor(cursor); - } - - @Override - public void onLoaderReset(Loader loader) { - ((CursorAdapter)getListAdapter()).changeCursor(null); - } - - private class IdentitiesListAdapter extends CursorAdapter { - private final MasterSecret masterSecret; - private final LayoutInflater inflater; - - public IdentitiesListAdapter(Context context, Cursor cursor, MasterSecret masterSecret) { - super(context, cursor); - this.masterSecret = masterSecret; - this.inflater = LayoutInflater.from(context); - } - - @Override - public void bindView(View view, Context context, Cursor cursor) { - IdentityDatabase.Reader reader = DatabaseFactory.getIdentityDatabase(context) - .readerFor(masterSecret, cursor); - - ((IdentityKeyView)view).set(reader.getCurrent()); - } - - @Override - public View newView(Context context, Cursor cursor, ViewGroup parent) { - return inflater.inflate(R.layout.identity_key_view, parent, false); - } - } -} \ No newline at end of file