mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-07 16:09:38 +02:00
some ui improvements: show the category we add to
This commit is contained in:
parent
afe79f7243
commit
19b48565f4
|
@ -25,6 +25,7 @@ import android.widget.Toast;
|
||||||
|
|
||||||
import com.zeapo.pwdstore.R;
|
import com.zeapo.pwdstore.R;
|
||||||
import com.zeapo.pwdstore.UserPreference;
|
import com.zeapo.pwdstore.UserPreference;
|
||||||
|
import com.zeapo.pwdstore.utils.PasswordRepository;
|
||||||
|
|
||||||
import org.apache.commons.io.FileUtils;
|
import org.apache.commons.io.FileUtils;
|
||||||
import org.openintents.openpgp.OpenPgpError;
|
import org.openintents.openpgp.OpenPgpError;
|
||||||
|
@ -70,6 +71,10 @@ public class PgpHandler extends Activity {
|
||||||
((TextView) findViewById(R.id.crypto_password_file)).setText(extra.getString("NAME"));
|
((TextView) findViewById(R.id.crypto_password_file)).setText(extra.getString("NAME"));
|
||||||
} else if (extra.getString("Operation").equals("ENCRYPT")) {
|
} else if (extra.getString("Operation").equals("ENCRYPT")) {
|
||||||
setContentView(R.layout.encrypt_layout);
|
setContentView(R.layout.encrypt_layout);
|
||||||
|
String cat = extra.getString("FILE_PATH");
|
||||||
|
cat = cat.replace(PasswordRepository.getWorkTree().getAbsolutePath(), "");
|
||||||
|
cat = cat + "/";
|
||||||
|
((TextView) findViewById(R.id.crypto_password_category)).setText(cat);
|
||||||
}
|
}
|
||||||
|
|
||||||
// some persistance
|
// some persistance
|
||||||
|
|
|
@ -25,17 +25,21 @@
|
||||||
android:layout_column="0">
|
android:layout_column="0">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/crypto_password_category"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:text="Name: "/>
|
android:textColor="@android:color/holo_blue_dark"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:text="CATEGORY/"/>
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:id="@+id/crypto_password_file_edit"
|
android:id="@+id/crypto_password_file_edit"
|
||||||
|
android:hint="@string/crypto_name_hint"
|
||||||
android:textColor="@android:color/holo_orange_dark"/>
|
android:textColor="@android:color/holo_orange_dark"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -65,7 +69,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:text="Password: "/>
|
android:text="@string/crypto_pass_label"/>
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/crypto_password_edit"
|
android:id="@+id/crypto_password_edit"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
|
@ -78,7 +82,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:text="Extra content: "/>
|
android:text="@string/crypto_extra_label"/>
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/crypto_extra_edit"
|
android:id="@+id/crypto_extra_edit"
|
||||||
|
|
|
@ -20,11 +20,11 @@
|
||||||
<string name="initialize">Initialize a git repository</string>
|
<string name="initialize">Initialize a git repository</string>
|
||||||
<string name="hello_blank_fragment">Hello blank fragment</string>
|
<string name="hello_blank_fragment">Hello blank fragment</string>
|
||||||
|
|
||||||
<!-- APG related -->
|
<!-- PGP Handler -->
|
||||||
<string name="error_activity_not_found">No suitable application for this action found.</string>
|
|
||||||
<string name="error_apg_version_not_supported">The installed APG version is not supported.</string>
|
|
||||||
<string name="insufficient_apg_permissions">Password Store doesn\'t have permission to access APG fully, please reinstall Password Store to fix that.</string>
|
|
||||||
<string name="title_activity_agp_intents">AgpIntentsActivity</string>
|
|
||||||
<string name="title_activity_pgp_handler">PgpHandler</string>
|
<string name="title_activity_pgp_handler">PgpHandler</string>
|
||||||
|
<string name="crypto_name_hint">name</string>
|
||||||
|
<string name="crypto_pass_label">Password</string>
|
||||||
|
<string name="crypto_extra_label">Extra</string>
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue